How to get ckeditor textarea value using jquery?

I am using ckeditor for textarea but i could not get data from it.Can any one help me?

Default Asked on May 29, 2019 in JQUERY.
Add Comment
1 Answer(s)


<script src=""></script>

<script src=""></script>

<textarea name="editor1" id="editor1" rows="10" cols="80">

This is my textarea to be replaced with CKEditor.


<button type="button" id="getDataBtn">Get Data</button>

CKEDITOR.replace( 'editor1' );

var editorData= CKEDITOR.instances['editor1'].getData();

alert(" your data is :"+editorData);




Team Leader Answered on May 29, 2019.
Add Comment

Your Answer

By posting your answer, you agree to the privacy policy and terms of service.