Get formatted HTML from CKEditor
Posted
by sslepian
on Stack Overflow
See other posts from Stack Overflow
or by sslepian
Published on 2010-03-14T00:23:00Z
Indexed on
2010/03/14
0:25 UTC
Read the original article
Hit count: 762
ckeditor
I'm using CKEditor in my web app, and I'm at a loss as to how to get the contents of the editor with HTML formatting.
var objEditor = CKEDITOR.instances["sectionTextArea"];
var q = objEditor.getData();
This will get me the text entered in CKEditor, without any markup.
However,
var q = objEditor.getHTML();
will return a null value. What am I doing wrong?
© Stack Overflow or respective owner