CKEditor Plugin giving errors "Uncaught TypeError: Unable to read property icons" null ",

I am just starting with CKEditor (latest version 4.5.7) using cdn, wanting to use the plugin:

http://ckeditor.com/addon/uploadimage 

I have downloaded and extracted the files of this plugin in 'myplugins / uploadImage /'.

  <textarea name="editor1"></textarea> <script> CKEDITOR.plugins.addExternal( 'uploadImage', '/myplugins/uploadImage/', 'plugin.js' ); CKEDITOR.replace( 'editor1', { extraPlugins: 'uploadImage' } ); </script> 

CKEditor works without any plugins, but when I do the above to add the 'uploadImage' plugin, I get the following error in the chrome console:

'Uncaught TypeError: Unable to read' null 'property icons

What am I missing?

+5
source share
1 answer

The solution for me was based on this answer: ckeditor - Uncaught TypeError: Unable to read "null" property icons

I did not download images, but I tried to add a plugin that I did not install. In particular, it was: extraPlugins: 'tableresize',

I don't need tableresize , so I just removed tableresize from the extraPlugins row. I reloaded the page and the error went away.

0
source

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


All Articles