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

PHPMotion implementation - URL based videos (Hosted on separate location) -

javascript - Using Windows Media Player as video fallback for video tag -

c# - Unity IoC Lifetime per HttpRequest for UserStore -