FCKeditor: Leading spaces after saving

Questions about how to use the online - editors and suggestions how to improve them
Post Reply
soong
Posts: 14
Joined: Sat Sep 06, 2008 11:21 am
Location: Rheinland-Pfalz, Germany

FCKeditor: Leading spaces after saving

Post by soong » Mon Oct 06, 2008 3:25 pm

Hello,

I have long since noticed that Connies FCKeditor adds a space to new passages. It seems to happen during saving a page. Is this a problem with my environment or a bug in FCKeditor?

Connie
Posts: 282
Joined: Thu May 22, 2008 10:11 am
Location: Hamburg
Contact:

Re: FCKeditor: Leading spaces after saving

Post by Connie » Tue Oct 07, 2008 6:49 am

As I did not notice that please tell me exactly, where is this space added?

before what?
after what?
between what?

please give me an example of the text before and after saving
|---
Connie Müller-Gödecke, http://www.webdeerns.de

soong
Posts: 14
Joined: Sat Sep 06, 2008 11:21 am
Location: Rheinland-Pfalz, Germany

Re: FCKeditor: Leading spaces after saving

Post by soong » Tue Oct 07, 2008 2:39 pm

I write the following text into the editor window (notice the empty line in between):
Line1

Line2
After saving or switching to HTML mode, I come out with the following (space character marked as _)
Line1
_
Line2
The HTML code for this part is:

Code: Select all

<p>Line1</p>
<p>&nbsp;</p>
<p>Line2</p>
I use CMSimple 3.2 and FCKEditor for CMSimple 2.2.0.

Holger
Site Admin
Posts: 3470
Joined: Mon May 19, 2008 7:10 pm
Location: Hessen, Germany

Re: FCKeditor: Leading spaces after saving

Post by Holger » Tue Oct 07, 2008 5:43 pm

<p></p> is invalid markup. That's why the editer insert a &nbsp;.
The same happens with empty <td>'s.

If you want to have a empty line use shift+return and you'll get a <br />.

Holger

soong
Posts: 14
Joined: Sat Sep 06, 2008 11:21 am
Location: Rheinland-Pfalz, Germany

Re: FCKeditor: Leading spaces after saving

Post by soong » Wed Oct 08, 2008 2:32 pm

Thank you, I´m going to try that.

Post Reply