Hi
If plain text format is set as default, after switching from it to any other HTML Editor enabled format - Editor console fails to load.
Tested with latest D7.28, Wysiwyg 7.x-2.2+45-dev and CKEditor 4.4.1 (and also with TinyMCE 3.5.11)
Screenshot attached.
If any HTML Editor enabled format is default everything works and loads fine.
Also, when tested with Wysiwyg 7.x-2.2 everything is fine, so it seems to be current Wysiwyg dev version problem.
Tested with few browsers, so it is not browser-connected problem.
Note: paches are not my skill. But if some more testing is needed, I'm here to help.
Comments
Comment #1
devad commentedComment #2
devad commentedComment #3
twodOops, my bad.
The error "Cannot read property 'enabled' of undefined" gets thrown when the default format does not have an editor.
I missed checking if format-specific state exists for a field before checking if that state says an editor should be enabled.
#741606: Teaser splitter / text fields with summary support implemented this new way of dealing with per-field state, and #2284955: Can't close modal with latest version of WYSIWYG also removed field state info for formats which do not have an editor, but it missed this special case.
I've pushed this simple fix to 7.x-2.x so the -dev snapshot should be updated within a few hours.
Thanks for reporting this!
Comment #5
devad commentedI can confirm that 7.x-2.2+46-dev solved problem on my instalation as well.
Thank you (and you'r welcome).