Hi, I have been working on a nasty problem where my programs that drive CKeditor fail on Firefox but work fine in IE. I have narrowed the issue down to this... When the file being edited ends with an html comment, that comment is removed when editing in Firefox, but not removed when editing in IE.
Here is the source HTML
And here is how that html looks in CKeditor (latest version) when viewed in the editor's source mode in IE
Note that the editor moves the comment to within the <body> tag.
Now here how that same html looks in CKeditor when viewed in the editor's source mode in Firefox
Note that the comment tag has been removed completely.
This behavior is screwing up the programs I wrote to drive the editor. Can you reproduce this behavior? Is there a way to stop the removal of ending comments? Thanks.
Here is the source HTML
<html> <head> <title>Test file</title> </head> <body> This is the stuff in the body </body> </html> <!-- here is a comment -->
And here is how that html looks in CKeditor (latest version) when viewed in the editor's source mode in IE
<html> <head> <title>Test file</title> </head> <body> This is the stuff in the body<!-- here is a comment --></body> </html>
Note that the editor moves the comment to within the <body> tag.
Now here how that same html looks in CKeditor when viewed in the editor's source mode in Firefox
<html> <head> <title>Test file</title> </head> <body> This is the stuff in the body</body> </html>
Note that the comment tag has been removed completely.
This behavior is screwing up the programs I wrote to drive the editor. Can you reproduce this behavior? Is there a way to stop the removal of ending comments? Thanks.
Re: Ending HTML Comments stripped out in Firefox
Re: Ending HTML Comments stripped out in Firefox
Re: Ending HTML Comments stripped out in Firefox
Yes, the team is aware of this and similar bugs. A patch for IE was created a while ago, but it appears the other browsers still don't have one. Here's a link to such a dev ticket (bottom part links to similar tickets as well):
https://dev.ckeditor.com/ticket/6709
Customer and Community Manager, CKSource
Follow us on: Facebook, Twitter, LinkedIn
If you think you found a bug in CKEditor, read this!
Re: Ending HTML Comments stripped out in Firefox
To work around this issue I tried replacing the ending comments with dummy tags that I made up. Something like but I find that the editor moves these tags around from where I originally positioned them in the HTML source. Is there a way to tell it to stop doing that?