FCKEditor version: 2.6.3
Browser: FireFox 3.0.1 and Chrome
When formatting the following HTML in version 2.6.3 in FireFox, the editor is adding extra paragraphs into the HTML. I am wondering if anyone else has had this issue and if there is a fix or workaround. This seems very basic and something that users would come across quite frequently. There are 3 paragraphs, you highlight the paragraphs and try to change the text color. Extra paragraphs are added. Any help or suggestions would be greatly appreciated. This problem can be reproduced from the FCKEditor demo page. http://www.fckeditor.net/demo
To reproduce this issue
1. click the source button in the editor
2. paste the HTMLbelow into the editor
3. click the source button again to get to edit mode
4. highlight all the text
5. click the text color button and try to change the text color
HTML SOURCE
<p><span style="color: rgb(51, 102, 255);"><span style="font-size: medium;">line one</span></span></p> <p><span style="color: rgb(51, 102, 255);"><span style="font-size: medium;">line two</span></span></p> <p><span style="color: rgb(51, 102, 255);"><span style="font-size: medium;">line three</span></span></p>
RESULT HTML SOURCE (after applying text color formatting)
<p> </p> <p><span style="color: rgb(255, 102, 0);"> <p><span style="font-size: medium;">line one</span></p> </span></p> <p> </p> <p><span style="color: rgb(255, 102, 0);"> <p><span style="font-size: medium;">line two</span></p> </span></p> <p><span style="color: rgb(255, 102, 0);"><span style="font-size: medium;">line three</span></span></p>
I have been able to reproduce this issue in FIreFox and Chrome. It does not appear to happen in Internet Explorer.
In the config file: i have both FormatSource and FormatOutput set to true.
NOTE: this problem seems to be associated with the view source mode. When just entering text and formatting it with the editor I was not able to reproduce the problem. But after viewing the source and then formatting the text the problem occurs.
Also, In chrome - each time you toggle between source and edit mode extra empty paragraphs are added