Opened 8 years ago

Closed 8 years ago

#5427 closed Bug (invalid)

Initial Value of CkEditor interprets non-html text as html.

Reported by: Christian Stone Owned by:
Priority: Normal Milestone:
Component: General Version: 3.2
Keywords: Cc:


Type code in a ckeditor instance containing html. Note, don't style normal text, but type in the following plain text: <br/><b>some text</b><table><tr><td>some table data</td></tr></table>

The submitted data is correct. The value of the submit is as follows: <p>

&lt;br/&gt;&lt;b&gt;some text&lt;/b&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;some table data&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</p>

This is where the problem lies. Populate a textarea with this data and instantiate a ckeditor on it.

<textarea cols="70" id="messageBody" style="width:805px" rows="8" name="messageBody" tabindex="2"><p> &lt;br/&gt;&lt;b&gt;some text&lt;/b&gt;&lt;table&gt;&lt;tr&gt;&lt;td&gt;some table data&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</p>


Instead of seeing the typed text, you see a full html rendering of your typed text in the ckeditor field. "Some Text" is bold, and there is a table with a cell containing "some table data".

Expectation is that the editor should render the text "<br/><b>some text</b><table><tr><td>some table data</td></tr></table>" instead of html.

Am I missing something, or is this an error? This is important, as I allow people to preview their posts and I wish to use this editor. If they preview the post, and there is any typed code, it munges the data.

Firefox (latest) Mac OS X Snow Leopard.

Attachments (1)

Screen shot 2010-03-31 at 12.30.35 PM.png (130.3 KB) - added by Christian Stone 8 years ago.
screen shot

Download all attachments as: .zip

Change History (4)

Changed 8 years ago by Christian Stone

screen shot

comment:1 Changed 8 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: newclosed

That's invalid HTML. The contents of the textarea must be escaped properly

comment:2 Changed 8 years ago by zoraya

Resolution: invalid
Status: closedreopened
Version: 3.2FCKeditor 2.6.3

hi I have a problem similar to this one. Our application reads the body of mails send via exchange and inserts the body in our database. Later we display the body of the mail using the fckeditor. However the following line is not display correctly on the editor: <br/>Subject: FW: <CASE:4613544262><br/>

The FCKEditor renders it as &lt;CASE:4613544262&gt;. At the end we see only : "Subject: FW: ", but I wanna see "Subject: FW: <CASE:4613544262>".

There is something you can help me with?

Thank you

comment:3 Changed 8 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: reopenedclosed
Version: FCKeditor

Please, use our forums for general support.

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