In some cases `cmd+backspace` can remove `HtmlComment`
Author: michalbilikCreated Sep 19, 2025Updated Sep 19, 2026
Labelstype:bugsquad:corepackage:html-supportstatus:stale
Provide detailed reproduction steps (if any)
- Go to https://ckeditor.com/docs/ckeditor5/latest/features/html/html-comments.html
- Change content to
<p>
The great things you learn from traveling
</p>
<!-- Like all the great things on Earth, traveling teaches us by example. Here are some of the most precious lessons I’ve learned over the years of traveling. -->
<p>
Appreciation of diversity
</p>
<p>
Getting used to an entirely different culture can be challenging. While it’s also nice to learn about cultures online or from books, nothing comes close to experiencing cultural diversity in person. You learn to appreciate each and every single one of the differences while you become more culturally fluid.
</p>- Place caret at the end of the second paragraph
- Press
cmd+backspacetwice.
✔️ Expected result
HTML Comment is nor removed
❌ Actual result
https://github.com/user-attachments/assets/28a77a7e-880a-40f6-a55c-1e57ff2ce679
Other details
- Browser: Firefox
- OS: macOS
- First affected CKEditor version: tested on
If you'd like to see this fixed sooner, add a reaction to this post.
Source: ckeditor/ckeditor5