JQuery gets or sets the data of sample code for ckeditor


When fetching data from CKEditor,

var data_tc = CKEDITOR.instances['txt_editor_tc'].getData();

When setting data to CKEditor,

CKEDITOR.instances['txt_editor_sc'].setData('test');

These two lines of code are used in JQuery or JS to get CKEditor or to set CKEditor data.