İlker Ekşi
İlker Ekşi

Reputation: 25

CKEditor jQuery Value is Empty

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

Answers (1)

Pavel Kutakov
Pavel Kutakov

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

Related Questions