Drupal 6.10
Wysiwyg API 6.x-1.1
FCKeditor 2.6.4
IMCE Wysiwyg API bridge 6.x-1.0
IMCE 6.x-1.2

I'm having trouble to get more than 1 bar of buttons in FCKeditor if I select them manually.

Normally, if I don't select any of the checkboxes in Buttons and plugins, then I will get all the buttons spread across 4 bars.

http://img4.imageshack.us/img4/3336/1239465720681.png

Now, if I go in the FCKeditor profile and select the buttons manually, it will only show a single bar even if there are more buttons than a single bar can hold.

http://img4.imageshack.us/img4/4897/1239465720682.png

Maybe this is a bug? The reason I need to select the buttons manually is because of IMCE. I installed the IMCE Wysiwyg API so that I can get IMCE working with FCKeditor via Wysiwyg API. If I leave everything unselected in Buttons and plugins, then IMCE won't work properly. So in order to make IMCE work, I must check the IMCE checkbox in Buttons and plugins, and I want every other buttons to work as well, so I checked every other buttons too. Now the only problem is FCKeditor will not show more than a single bar.

Thanks in advance.

Comments

Anonymous’s picture

I have the same problem with any 6.x variant of Wysiwyg API, with FCK 2.6.4 in Firefox 3.0.8. Also with checking all buttons manually. With IMCE and IMCE_WYSIWYG (bridge).

sinasquax’s picture

i use this patch to get buttons in many rows :

in editors/fckeditor.inc, replace :

if (!empty($settings['buttons'])) {
  $settings['buttons'] = array($settings['buttons']);
}

by :

// Place buttons in rows (add a settings in admin page to set how many button will be placed in a row, here 12 is hard coded)
if (!empty($settings['buttons'])) {
  $buttons = $settings['buttons'];
  $settings['buttons'] = array();

  while (!(empty($buttons))) $settings['buttons'][] = array_splice($buttons, 0, 12);
}
valel46’s picture

Hi sinasquax,

Thanks a lot for the patch.

I think this did the trick, but I'm still not able to get all the buttons (circled ones)?

http://img8.imageshack.us/img8/3336/1239465720681.png

The picture above is when no checkbox is checked manually. It seems like there are more buttons like that.

Also, where is the settings in the admin page? I couldn't find it, I changed 12 to 20 in the code.

Thanks again.

sinasquax’s picture

There is no settings in admin page (it's a todo comment), 12 is hard coded, when i will have time, i will add settings.

Try to change 12 by a lower number if you don't see all buttons (for me i need to put 5 to see all buttons)

Thank you for the test

valel46’s picture

Hi sinasquax,

I just tried 8 and even 5, those 9 buttons still won't show. The strange thing is that it's not any 9 buttons, it's always those 9 buttons.

Either way, even without those 9 buttons is still much better than before.

sun’s picture

Status: Active » Closed (duplicate)