Ckeditor sends default content
Posted
by
user1294101
on Stack Overflow
See other posts from Stack Overflow
or by user1294101
Published on 2012-04-04T19:13:05Z
Indexed on
2012/04/04
23:28 UTC
Read the original article
Hit count: 189
I use ckeditor with a default content. Then I initialize (replace textarea) CKEditor with jquery and I edit the text. The problem is that var data = $( 'textarea.editor' ).val(); returns default content and also getData(). What I have to do to grab the actual content? Thank you very much
var ed = $( '#ed' ).ckeditor(
{toolbar :[
{ name: 'basicstyles', items : [ 'Bold','Italic' ] },
{name: 'link', items:['Link']},
{ name: 'colors', items : [ 'TextColor' ] }
]
}
);
© Stack Overflow or respective owner