Hello,

Installed the module following the installation process step by step.

I can see the new gear button inside my ckeditor, with when I click on it, nothing appears and I get a javascript error in the console :

Uncaught TypeError: Cannot read property 'state' of undefined

Regards,

Alex

Comments

Alexandre360 created an issue.

Alexandre360’s picture

Bump. Still have the problem, tried to reinstall the module from scratch on a clean install.

narquam’s picture

I just ran into this issue on the alpha3 release. It was working fine and then when I went to edit an entry, every field this is tied to responds with cannot read property state. This started happening without any changes to drupal. I tried multiple versions of ckeditor after this error started showing up but I cannot fix it either.

Trace:
CKEDITOR.menu.CKEDITOR.tools.createClass._.onShow @ ckeditor.js:630
(anonymous function) @ ckeditor.js:24
CKEDITOR.menu.CKEDITOR.tools.createClass.proto.show @ ckeditor.js:632
(anonymous function) @ ckeditor.js:764

narquam’s picture

I found a temporary solution for alpha 3. It seems there is a bug with setting enabled dropdown buttons on the widgets config page. I had to disable everything below alert for the "state" error to go away. Now it functions properly.

Disable accordion, media, code snippet, leaflet, and font awesome.

May not be a fix for everyone but there is obviously a bug related to disabling any item below alert box. If you leave them all enabled by default, there is no issue. The issue arises when you alter what is enabled. I can't enable even one of those 5 fields after disabling any of them.

baranimurthy’s picture

thanks @narquam. your solution works like a charm.

cabplan’s picture

thanks @narquam, disabling those did fix the issue, appreciate it had no idea why it was not working after I followed the directions.

But when will this be fixed so the other options can be selected for use:

Insert accordion box
Insert media
Insert code snippet
Insert leaflet map
Insert Font Awesome icon