Slight problem with YUI rich text editor

ekoprabowo - January 2, 2009 - 10:28

helo

i've installed YUI editor in my Drupal 6.8. it works, but there is a slight problem with the button layout.

http://farm4.static.flickr.com/3255/3158710857_da85f99a95.jpg?v=0

the button layout is not straight. how can i fix it?
is there anyone can help me please?

Create a Custom Button Profile

jpeters - March 30, 2009 - 15:39

Navigate to Site Configuration > YUI Editor Settings > Edit User Role and scroll down to the Buttons section

If you select the custom button profile, it will allow you to drag buttons around that you don't want. While there, if you double click on the text box it will allow you to add custom text. (It looks like the default text might be too long.)

Perhaps a combination of these things will help you with your problem.

Fixed by editing yui_editor\toolbars\yui_editor_toolbar_default.

koyama - May 9, 2009 - 20:03

Managed to get this fixed by changing line 71 in yui_editor\toolbars\yui_editor_toolbar_default.js

from this:

{ group: 'indentlist', label: 'Indenting and Lists',

to this:

{ group: 'indentlist2', label: 'Indenting and Lists',

Found solution by using Firebug to compare CSS classes in YUI Editor on Drupal installation vs. the one on the online demo page at the Yahoo! Developer Network site.

Screenshots:

Environment:

  • Drupal 6.11
  • Yahoo YUI: 6.x-1.1-rc2
  • YUI Rich Text Editor: 6.x-2.33
 
 

Drupal is a registered trademark of Dries Buytaert.