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.

Comments

Title:YUI Editor installed, shown as install, but eontent /add edit shows plain text onlyYUI Editor shown as installed, but content add/edit shows plain text only

Which 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?

I'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!

Title:YUI Editor shown as installed, but content add/edit shows plain text onlyYUI Editor does not work when no plugins are enabled
Version:7.x-2.1» 7.x-2.x-dev
Category:support» bug
Status:Active» Needs review
StatusFileSize
new4.43 KB

I 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.

Version:7.x-2.x-dev» 7.x-2.1
Category:bug» support
Status:Needs review» Reviewed & tested by the community

patch works perfectly, thanks acrollet!

Version:7.x-2.1» 7.x-2.x-dev
Category:support» bug

Status:Reviewed & tested by the community» Patch (to be ported)

Thanks 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.

StatusFileSize
new1.04 KB

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

Status:Patch (to be ported)» Fixed

All of #614402: Plugin API support for YUI Editor and the patches here have now been ported to 6.x-2.x as well.

Status:Fixed» Closed (fixed)

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