Skip to content

Add support for rendering HTML comments in rich text editor

Himanshu Kapoor requested to merge himkp-rte-placeholder into master

What does this MR do and why?

Add support for comments in rich text editor

Add support for showing HTML comments in rich text editor as a placeholder element.

Changelog: added

MR acceptance checklist

Please evaluate this MR against the MR acceptance checklist. It helps you analyze changes to reduce risks in quality, performance, reliability, security, and maintainability.

Screenshots or screen recordings

Screen Recording 2024-07-08 at 14.12.01.mov

How to set up and validate locally

  1. Create an issue with an issue template that has comments in it.
  2. Switch to rich text editor.
  3. Notice that comments now appear with a dotted border in RTE.

Note: Comments cannot be edited in RTE. They only appear as a read-only placeholder element. You can select it and type something to replace with actual content. You can also press delete to delete it.

Related to #432493 (closed)

Edited by Himanshu Kapoor

Merge request reports