Languages

CK Editor 4 doesn't remove HTML comments from body

8 points
Asked by:
Gigadude
791

Last time I have decided to install CK Editor 4. Everything was great until codesnippet plugin was installed and I started pasting text from system clipboard. I have noticed the content read from editor with JavaScript API contains HTML comments (<!-- -->). They are not removed by editor what messes codesnippet and It doesn't work correct way.

I do not see any option to filter or disable comments in CK Editor.

There is some way how to fix it?

1 answer
1 points
Answered by:
Root-ssh
178290

Add rule to data filter:

Example configuration:

 

0 commentsAdd comment
Donate to Dirask
Our content is created by volunteers - like Wikipedia. If you think, the things we do are good, donate us. Thanks!
Join to our subscribers to be up to date with content, news and offers.
Native Advertising
🚀
Get your tech brand or product in front of software developers.
For more information Contact us
Dirask - we help you to
solve coding problems.
Ask question.

❤️💻 🙂

Join