How to check fckeditor loads fully or not

After loading, the editor registers the global FCKeditorAPI object. This object offers an entry point for interacting with any editor instance hosted on the page, and I get an error message indicating that FCKeditorAPI is not defined, so there is some method in javascript to check if fckeditor is loaded or not.

+3
source share
2 answers

Try the following:

if( typeof( FCKeditorAPI ) !== "undefined" )
{
     /* any logic you want */
}
+1
source

Version 3 (ckeditor) has an instance of Ready

CKEDITOR.on('instanceReady', function(ev) {
  doWhateverWith(ev);
});

Which version are you using?

0
source

Source: https://habr.com/ru/post/1760327/


All Articles