javascript - CKEditor - retrieve data as text instead of html -
this question has answer here:
- getting non-html text ckeditor 5 answers
i using ckeditor allow user create html templates , save in database. have 2 types of templates - html & text.
using ckeditor manage template content. problem able save html tempaltes, not text templates.
use editor.getdata()
in javascript extract html content. how can use ckeditor return text content?
try code
ckeditor.instances.editor1.document.getbody().gettext()
reference: http://ckeditor.com/forums/ckeditor-3.x/can-i-get-editors-data-plain-text-format
Comments
Post a Comment