I tried initiating ckeditor by CKEDITOR.replace( 'post-ckeditor' ) but it's not working. Then I used $('textarea').ckeditor(); and it's working.
I am trying to add content to textarea by JavaScript. It tried CKEDITOR.instances['post-editor'].setData(content) and alternately CKEDITOR.instances['.post-editor'].setData(content) but it is not working. Any help? Thank you.
I tried initiating ckeditor by CKEDITOR.replace( 'post-ckeditor' ) but it's not working. Then I used $('textarea').ckeditor(); and it's working.
I am trying to add content to textarea by JavaScript. It tried CKEDITOR.instances['post-editor'].setData(content) and alternately CKEDITOR.instances['.post-editor'].setData(content) but it is not working. Any help? Thank you.