Opened 15 years ago
Closed 15 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>
<br/><b>some text</b><table><tr><td>some table data</td></tr></table></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> <br/><b>some text</b><table><tr><td>some table data</td></tr></table></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)
Change History (4)
Changed 15 years ago by
Attachment: | Screen shot 2010-03-31 at 12.30.35 PM.png added |
---|
comment:1 Changed 15 years ago by
Resolution: | → invalid |
---|---|
Status: | new → closed |
That's invalid HTML. The contents of the textarea must be escaped properly
comment:2 Changed 15 years ago by
Resolution: | invalid |
---|---|
Status: | closed → reopened |
Version: | 3.2 → FCKeditor 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 <CASE:4613544262>. 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 15 years ago by
Resolution: | → invalid |
---|---|
Status: | reopened → closed |
Version: | FCKeditor 2.6.3 → 3.2 |
Please, use our forums for general support.
screen shot