I'm using the CKEditor jquery adapter in my web application. The editor works alright but I get a console error:
When I refer to the CKEDITOR dev error docs. It explains the error but it does not give a solution. I do not want to have errors in my code even if it works.
I found a solution. You have to initialize the CKEditor Textarea on DOM load.
Since the CKEditor adapter uses JQuery. The code below works.
$(window).on('load', function (){
$( '#ckeditor-textarea' ).ckeditor();
});
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With