CKEditor Insert HTML
问题 I have a data from database. In my js file, I would like to change my CKEditor text editor's value. My value is raw html. I want this raw value to be written on an empty CKEditor text editor. I tried these but got an undefined function error all the time : CKEDITOR.instances.myEditorID.insertHtml( '<p>This is a new paragraph.</p>' ); CKEDITOR.instances.myEditorID.setData( '<p>This is the editor data.</p>' ); I tried this too but still undefined function error : CKEDITOR.instances.YOUREDITORID