-
Notifications
You must be signed in to change notification settings - Fork 4.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hide footnotes block from the inserter #55058
Conversation
Edit: I have now tested it and whilst the block does show a notice when inserted in a template / template part it is working and behaving as expected 🤔 But it is rather confusing because you would want to remove the footnotes block from in content but need to leave it there till you are done editing all the footnotes... So for that alone it probably makes sense to remove it for now... |
Flaky tests detected in 9e0ce33. 🔍 Workflow run URL: https://github.com/WordPress/gutenberg/actions/runs/6410070093
|
Yea if the footnotes aren't added to the post content (at least for now), then you can't edit them. Interesting. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I would agree, it seems like a recipe for confusion to have the footnotes block available, and that the "inserter": false
option exists for cases like these.
I'm not sure I agree with this change personally. If you want to put the block in a given position in the "single" template for instance, you should be able to do so (and remove the block from post content) |
I suggested the same during the WP 6.3 release cycle. Enabling the inserter was intentional. Ref: #52812 (comment). |
I think we discussed with @ellatrix that we should allow inline editing of the footnotes as well (like in a dropdown or something) for these cases. |
Apologies for missing this context. To be sure I understand this correctly, this is about ensuring you can position where the footnotes show up when you're building a template? Yes, that's valid, though I wonder, can we hide the block when you're not in the site editor? |
We specifically enabled this in the inserter in #52445 after feedback (it was originally hidden). |
👋 Just checking if this PR should be backported to 6.4, as I noticed there was continued discussion after it was merged. |
I don't think we can specify editors in block.json, right? |
Probably not, given the same discussion. |
Thanks @jasmussen. I'll keep my eye on the discussion and cherry-pick if/when possible. |
What?
Adding the block within the editor adds an empty placeholder, whereas the actual action of adding a footnote via the block toolbar formats control is when a footnote is added to the post. I propose we remove the Footnotes block from the inserter.
The block will still be appended to the content if a footnote is added, you just can't insert an empty footnotes block (which is a good thing).
Testing Instructions
Screenshots or screencast