Opened 7 years ago

Closed 7 years ago

#9389 closed Bug (invalid)

To retrieve the data back from db in html format in ckeditor

Reported by: navapradha Owned by:
Priority: Normal Milestone:
Component: General Version: 3.6.4
Keywords: html format Cc: navapradha_t@…

Description

Am using a div element which is getting replaced by the ckeditor.The user enters some data in the editor and it is being saved in the database. Am retrieving back the data from DB and trying to display it in editor.Suppose if the user has entered a table in the editor it gets stored in db as <table border="1" cellpadding="1" cellspacing="1" style="width: 50px; height: 50px"><tbody><tr><td></td></tr></tbody></table>. Now when retrieved back from DB and shown in the page instead of displaying a table it displays as a text "<table border="1" cellpadding="1" cellspacing="1" style="width: 50px; height: 50px"><tbody><tr><td></td></tr></tbody></table>" like this. But I want it to displayed as a table.Any idea of how to do this.

Attachments (1)

editortest.docx (190.6 KB) - added by navapradha 7 years ago.

Download all attachments as: .zip

Change History (2)

Changed 7 years ago by navapradha

Attachment: editortest.docx added

comment:1 Changed 7 years ago by Jakub Ś

Resolution: invalid
Status: newclosed

Please note that the CKEditor development website is not the right place for support requests.

Please refer to the following article for information on where to get support for all issues related to CKEditor: http://docs.cksource.com/CKEditor_3.x/Howto/Support

Also try using our forums for advice: http://cksource.com/forums/

If you are looking for professional assistance, the CKEditor development team is available via a dedicated support channel that is included in all our commercial licenses: http://ckeditor.com/license


  1. Please read some tutorials about encoding decoding request parameters
  2. In your case try using encodeURIComponent method on editor_data. You have to encode HTML before sending it to Server. You may also need to use decodeURIComponent when loading data from server.
  3. Bear in mind that query string length is limited in browsers. It is not good idea to send HTML using GET method. Use POST instead.
Note: See TracTickets for help on using tickets.
© 2003 – 2019 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy