Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

CKEDITOR Error code: editor-element-conflict

I'm using the CKEditor jquery adapter in my web application. The editor works alright but I get a console error:

CKEditor 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.

like image 228
Nafiu Lawal Avatar asked Dec 03 '19 13:12

Nafiu Lawal


1 Answers

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();
});
like image 189
Nafiu Lawal Avatar answered Sep 19 '22 09:09

Nafiu Lawal