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.

CommentFileSizeAuthor
#3 wysiwyg-no-default-editor.2292913.3.patch567 bytestwod
#1 wysywig.jpg120.96 KBdevad
wysywig.jpg144.93 KBdevad

Comments

devad’s picture

StatusFileSize
new120.96 KB
devad’s picture

Issue summary: View changes
twod’s picture

Oops, 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!

  • TwoD committed 37dc07d on 7.x-2.x
    - #2292913 by TwoD: Fixed error when the default format has no editor....
devad’s picture

I can confirm that 7.x-2.2+46-dev solved problem on my instalation as well.

Thank you (and you'r welcome).

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.