-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Closed
Closed
Copy link
Labels
[Block] FootnotesAffects the Footnotes BlockAffects the Footnotes Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Description
Description
Adding one or more footnotes in a page content the fn
links format are not removed from the text if the footnotes block is deleted from the editor.
As additional note I see a strange behavior when I add a new note before an existing one, the block does not seems to reorder the internal list correctly.
Step-by-step reproduction instructions
For the block removing issue
- Create a new post or page and introduce a paragraph
- Select a portion of the paragraph and add a footnote
- Delete the Footnotes block
Result
- The
fn
elements are not removed from the paragraph - The Front-end is not rendering the
fn
- The Front-end is rendering asterisk
For the incorrect internal block list
- Create a new post or page and introduce a paragraph
- Select a portion of the paragraph and add a footnote
- Select another portion of the paragraph which exists before the already added footnote
Result
- The
fn
order looks correct but the block list order is incorrect and missing the new item
Screenshots, screen recording, code snippet
2023-06-30.15-05-42.mp4
And here how's look like on FrontOffice when the Footnotes block is not available.
Environment info
- Gutenberg
trunk
up to date todec307cff1
commit - Wordpress 6.3-beta2-56116
- TwentyTwentyThree Theme (it's part of the wp-env)
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
Metadata
Metadata
Assignees
Labels
[Block] FootnotesAffects the Footnotes BlockAffects the Footnotes Block[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended