Edtior containing only HTML Comments will be removed in its entirety.
When I didn't enable the HTML Comment plugin, all my HTML comments when editing content were removed, the problem was solved when I enabled the plugin, that's great. But I just ran into this issue with myself as well, the problem is when the editor only contains HTML comments, after switching to source editing mode, all HTML Comment will be remove. I don't know if this is a bug or a feature of HTML Comment so I'll temporarily type it as a bug, sorry for this. With CKEditor4, the comments will still be kept.
📝 Provide detailed reproduction steps (if any)
Switching between Source edting mode.
✔️ Expected result
Ckedtior4: Html comments still be kept. Ckedtior5: Html comments removed.
❌ Actual result
Ckedtior5: Html comments still be kept.
I can't find any related issue and don't have a solution for this problem, if anyone has encountered this problem please give me a solution, thank you for your attention !