Opened 14 years ago

Closed 14 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:

Description

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>

</textarea>

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 14 years ago.
screen shot

Download all attachments as: .zip

Change History (4)

Changed 14 years ago by Christian Stone

screen shot

comment:1 Changed 14 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 14 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 14 years ago by Alfonso Martínez de Lizarrondo

Resolution: invalid
Status: reopenedclosed
Version: FCKeditor 2.6.33.2

Please, use our forums for general support.

Note: See TracTickets for help on using tickets.
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy