FormatOutput doesn't format properly properly
| Project: | FCKeditor - WYSIWYG HTML editor |
| Version: | 6.x-1.3-beta2 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
It seems the FormatOutput option of FCKeditor doesn't quite work properly. I think it has something to do with the integration with drupal, because the plain FCKeditor itself doesn't exhibit this problem (tried with demo at http://www.fckeditor.net/).
When FormatOutput is true, FCKeditor is supposed to format its output to insert line breaks after certain types of end tags. However, it doesn't always work. For example, if I type:
123
The numbers 1, 2, and 3 are each in their own paragraph. I expect the output of FCKeditor (back to the webserver) to be:
1
2
3
But actually, I get:
1
2
3
HOWEVER, if I click on the "Source" view, I get to see the source properly formatted (FormatSource is also true), and the submitted output back to the webserver is with the appropriate line breaks as expected.
Another way to do observe the problem. When NOT in "Source" view, click on "Switch to plain text editor". The HTML is bunched up in one line. If I am in "Source" view, then click on "Switch to plain text editor", the line breaks are as expected.

#1
I'm sorry, I mucked up the HTML tags in my initial post so they are not clearly presented.
What I expect to see is:
<p>1</p><p>2</p>
<p>3</p>
But what I got instead is:
<p>1</p><p>2</p><p>3</p>I hope this is clearer.
#2
Fixed in CVS.
http://cvs.drupal.org/viewvc.py/drupal/contributions/modules/fckeditor/f...
#3
I'm afraid not quite fixed. When I click "switch to plain text editor", the line breaks are now as expected. However, the output that gets submitted to the webserver (when I am in "rich text editor" mode) is still all bunched up together.
#4
Ooops. I missed that part. Hopefully now it is fixed.
#5
#6
Automatically closed -- issue fixed for two weeks with no activity.
#7
Hi,
I've just downloaded the new version (fckeditor-6.x-1.3-rc3) of FCKeditor and the line break problem is still not fixed. The texts just run into together and line breaks are ignored when viewed. Please help.
dantina.
#8
Check the latest 6.x-1.x dev release, remember to clear browser's cache (and any other javascript cache) after upgrading.