Wyswiwyg + YUI 2.9.0 installed.
With the config, everything is fine as far as I can see. YUI shows as installed, and is selected for Filtered / Full text editing. However, when adding content, it is the standard plain text box.
If anyone has an idea how I force the use of YUI, would be appreciated.
As a side note, if anyone knows a quick way to get Drupal 7 + text editor that is straight-forward, as I'm struggling finding one, I would really appreciate a PM me if you have a suggestion. I need to get a production site live and I'm struggling to find a working simple text editor for client use, so include a donate link so I can show my appreciation.
Comment | File | Size | Author |
---|---|---|---|
#7 | wysiwyg-yui-1617706.7.patch | 1.04 KB | TwoD |
#3 | wysiwyg-make_yui_work_when_no_plugins_present-1617706-3.patch | 4.43 KB | acrollet |
Comments
Comment #1
TwoDWhich buttons/plugins have you enabled?
Do you see any JavaScript errors in the browsers' console when the editor should appear?
Have you tried with 7.x-2.x-dev?
Comment #2
cecrs CreditAttribution: cecrs commentedI'm having this same problem. I've got YUI 2.9 installed, and I tried it with both the stable 7.x-2.2 and the 7.x-2.x dev version of WYSIWYG. I tried various combinations of buttons, and I don't have any plugins installed.
The js console produces this error for all button combinations that I tried:
TypeError: Drupal.settings.wysiwyg.plugins[params.format] is undefined
[Break On This Error]
for (var plugin in Drupal.settings.wysiwyg.plugins[params.format].drupal) {
yui.js?meu1ev (line 14)
I'm not sure that I entirely followed what you were talking about in this issue: http://drupal.org/node/1469722
but following the steps in comment #16 worked, in so far as the error is no longer being thrown in the js console, and the rich text editor buttons are appearing. Unfortunately, I do not want a media browser button to show in the editor, and disabling it makes all the other buttons disappear, and the error comes back. Let me know if you need any other information!
Comment #3
acrollet CreditAttribution: acrollet commentedI had a chance to look into this - The yui js is assuming that there will be a plugin of some sort defined, which is not always true. Attaching a patch that tests for the presence of Drupal.settings.wysiwyg.plugins[params.format] before using it, to match the approach used in e.g. ckeditor.js.
Comment #4
cecrs CreditAttribution: cecrs commentedpatch works perfectly, thanks acrollet!
Comment #5
cecrs CreditAttribution: cecrs commentedComment #6
TwoDThanks for reporting, patching and testing this.
I've committed the patch to the 7.x-2.x branch and will backport it to 6.x-2.x once a few other patches have been backported.
Development snapshots will be updated within 12 hours and this will be part of the next official release.
Comment #7
TwoDOops, there was a typo in the last patch, and I found a better command for inserting content into the editor which works across more browsers.
Committed the below patch to 7.x-2.x.
Comment #8
TwoDAll of #614402: Plugin API support for YUI Editor and the patches here have now been ported to 6.x-2.x as well.