-
Notifications
You must be signed in to change notification settings - Fork 4.7k
Closed
Labels
[Package] Format library/packages/format-library/packages/format-library[Package] Rich text/packages/rich-text/packages/rich-text[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Milestone
Description
Describe the bug
If a Block has an inline HTML comment, the HTML comment is stripped out when the Block is modified.
Sample text:
This is my paragraph text with <!-- html-comment -->an HTML comment<!-- /html-comment -->
To Reproduce
Steps to reproduce the behavior:
- Create a new Paragraph Block.
- Add the sample text in HTML mode.
- Switch to Visual mode.
- Switch back to HTML mode and see that the HTML comment persists.
- Switch to Visual mode and make some edit to the text.
- Switch back to HTML mode and see that the HTML comment has disappeared.
See GIF:
Expected behavior
My expected behavior is that the HTML comment persists when I edit the text.
In the scenario where I edit within the boundary of the HTML comment, my expected behavior is that the Block Editor would mirror the Classic Editor.
Desktop (please complete the following information):
- OS: Mac OS 10.14.2
- Browser: Firefox 64.0.2
- Version: Gutenberg 4.8.0
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
[Package] Format library/packages/format-library/packages/format-library[Package] Rich text/packages/rich-text/packages/rich-text[Priority] LowUsed to indicate that the issue at hand isn't a top priority to address and can be handled laterUsed to indicate that the issue at hand isn't a top priority to address and can be handled later[Status] In ProgressTracking issues with work in progressTracking issues with work in progress[Type] BugAn existing feature does not function as intendedAn existing feature does not function as intended
Type
Fields
Give feedbackNo fields configured for issues without a type.
