Ckeditor sends default content
- by user1294101
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' ] }
                ]
       }
      );