How do I set a value in CKEditor with Javascript?
The insertHtml()
and insertText()
methods will insert data into the editor window, adding to whatever is there already.
However, to replace the entire editor content, use setData()
.
The insertHtml()
and insertText()
methods will insert data into the editor window, adding to whatever is there already.
However, to replace the entire editor content, use setData()
.