Ticket #3217 (closed Bug: duplicate)
Unexpected <br> will be added to the RichText field if the RichText field is in source/XML view before the spell checking
|Reported by:||Steve.Organ||Owned by:|
|Component:||General||Version:||FCKeditor 2.5 Beta|
Clicking the "Source" button of the empty RichText field before spell-checking and you will get the <br> into the empty RichText field unexpectedly. - Continue to do the spell checking and then save the doc - Preview the doc and you will see the unexpected <br> text showing up in the RichText field (which supposed to be empty/blank
Steps to reproduce:
- Download the attachment sample01.html, put to <FCKEditor_HOME>/_samples/html/(replace the default one).
- Open the <FCKEditor_HOME>/fckconfig.js, change the entermode as "br".
- Open <FCKEditor_HOME>/_samples/default.html, clean the textarea, and click the button "testF", then click the source button.
What the button "testF" did are similar with spellcheck, it will invoke the function fck.GetXHTML().
This should be a fckeditor defect the fact that this function inserts an entermode node into the textarea if the entermode is "br".(If the entermode is p, then it is OK)