Closed (fixed)
Project:
Wysiwyg
Version:
7.x-2.0
Component:
Editor - CKEditor
Priority:
Major
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
29 Dec 2010 at 16:38 UTC
Updated:
27 Feb 2011 at 11:02 UTC
Jump to comment: Most recent file
Comments
Comment #1
twodThanks for reporting.
This is a regression introduced with #748888: isNode() is not called in CKEditor, reopening that issue. To work around it, enable a Drupal plugin like Teaser Break. Note that Teaser Break will throw an error when clicked and there's no selection unless you upgrade to Wysiwyg 2.x-dev first.
Comment #2
twodOn second thought, fixing this here instead to get a new commit message.
Attached patch has been committed to the affected D6 and D7 branches.
The -dev snapshots will have the fixed code within a few hours and it'll be part of the next official release.
Also added an entry to the FAQ.
Thanks again for reporting!
Comment #3
twodComment #5
andyf commentedHi
I still get a problem in
selectionChange. Following the code through I think it's because I don't have any cross-editor plugins (certainlyDrupal.settings.wysiwyg.plugins[params.format].drupaldoesn't exist). I've made a simple patch that's fixed my problems.Thanks
Comment #6
twodHmm, when I tested it looked like
$.each(Drupal.settings.wysiwyg.plugins[params.format].drupal, ...)would not try to iterate over an undefined.drupalas long asDrupal.settings.wysiwyg.plugins[params.format]is defined.But, it turns out it just throws an error instead (which CKEditor eats up, hence why it appeared to cause no problems).
This error could appear if there are native plugins active, but no cross-editor plugins.
I've committed your patch to D6 and D7 versions with a simple optimization; this callback is called very often and it takes slightly longer to call sub-objects than a local reference so every little bit counts.
Thanks for the patch!
The -dev snapshots will be rebuilt within 12 hours and the fix will be in the next official release.
Comment #7
twodComment #8
andyf commentedGreat, thanks!