Active
Project:
CKEditor Widgets
Version:
7.x-1.x-dev
Component:
Code
Priority:
Critical
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
22 Jan 2016 at 16:09 UTC
Updated:
2 Jun 2016 at 15:57 UTC
Jump to comment: Most recent
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
Comment #2
Alexandre360 commentedBump. Still have the problem, tried to reinstall the module from scratch on a clean install.
Comment #3
narquam commentedI 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
Comment #4
narquam commentedI 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.
Comment #5
baranimurthy commentedthanks @narquam. your solution works like a charm.
Comment #6
cabplan commentedthanks @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