javascript - CKEditor - retrieve data as text instead of html -


this question has answer here:

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

Popular posts from this blog

What can cause "Required Package 'IndyCore' not found" when compiling a Delphi 2010 project? -

Change the color of an oval at click in Java AWT -