UniSharp / laravel-ckeditor

This is a fork from the official CKEditor branch (standard edition), wrap it to laravel package.
Other
378 stars 143 forks source link

How to add content to textarea? #11

Closed ghost closed 8 years ago

ghost commented 8 years ago

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.