FormatOutput doesn't format properly properly

lzs - October 8, 2008 - 13:35
Project:FCKeditor - WYSIWYG HTML editor
Version:6.x-1.3-beta2
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
Description

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

lzs - October 8, 2008 - 13:40

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

wwalc - October 9, 2008 - 10:54

#3

lzs - October 15, 2008 - 13:00
Status:fixed» active

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

wwalc - October 15, 2008 - 13:32

Ooops. I missed that part. Hopefully now it is fixed.

#5

wwalc - October 15, 2008 - 13:32
Status:active» fixed

#6

Anonymous (not verified) - October 29, 2008 - 13:52
Status:fixed» closed

Automatically closed -- issue fixed for two weeks with no activity.

#7

dantina - November 19, 2008 - 13:25
Version:6.x-1.3-rc1» 6.x-1.3-beta2

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

wwalc - November 19, 2008 - 13:55

Check the latest 6.x-1.x dev release, remember to clear browser's cache (and any other javascript cache) after upgrading.

 
 

Drupal is a registered trademark of Dries Buytaert.