Opened 11 years ago

Last modified 11 years ago

#5154 closed Bug

ckeditor adds whitespace to tags in source — at Initial Version

Reported by: routinet Owned by:
Priority: Normal Milestone:
Component: Core : Output Data Version: 3.1
Keywords: Cc:

Description

When adding text with simple formats, fckeditor is inject whitespace between the tags, and between the tags and the content. When retrieving the same text from the database, the injected whitespace is interpreted as additional content, which is wrapped in its own set of tags. Each of the new tags receives the same injection of whitespace. Example:

Simple text: <h1>text 1</h1> <h1>text 2</h1> <h1>text 3</h1>

After switch out and back into source: <h1>

text 1</h1>

<h1>

text 2</h1>

<h1>

text 3</h1>

After saving and reloading the text, and switching to source view:

<h1>

<br /> text 1</h1>

<p>

&nbsp;</p>

<h1>

<br /> text 2</h1>

<p>

&nbsp;</p>

<h1>

<br /> text 3</h1>

Doing the same again, with absolutely zero changes by the user:

<h1>

<br /> <br /> <br /> text 1</h1>

<p>

&nbsp;</p>

<p>

<br /> &nbsp;</p>

<p>

&nbsp;</p>

<h1>

<br /> <br /> <br /> text 2</h1>

<p>

&nbsp;</p>

<p>

<br /> &nbsp;</p>

<p>

&nbsp;</p>

<h1>

<br /> <br /> <br /> text 3</h1>

Change History (0)

Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy