Reputation: 25
CKEditor jquery value ?
var val = jQuery('.ckeditor').val();
or
var val = jQuery('textarea[name="content"]').val();
Problem : Value is empty;
CKEditor version 4.x;
help me
Upvotes: 1
Views: 894
Reputation: 971
If you have instantiated CKEDITOR as it was recommended by tutorials, for example:
editor = CKEDITOR.appendTo("editorContainer", config, "");
then you may get the content by the following call:
editor.getData();
Upvotes: 2