JQuery gets or sets the data of sample code for ckeditor
- 2020-03-29 23:46:37
- OfStack
When fetching data from CKEditor,
When setting data to CKEditor,
These two lines of code are used in JQuery or JS to get CKEditor or to set CKEditor data.
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.