wysiwyg + ckeditor + skins?

Events happening in the community are now at Drupal community events on www.drupal.org.
ltyszko's picture

there is a problem with skin load in our precious module. all of buttons are in one group and there is no chance to wrap a toolbar with that bug, so it has almost 800px sometimes.

it is something like this: http://drupal.org/files/issues/ckscreen.jpg

is someone going to fix this? if yes when?

similiar topics:
http://drupal.org/node/737318

Comments

workaround

karol haltenberger's picture

Here's a quick workaround I used:

wysiwyg/editors/ckeditor.inc line 236

// For now, all buttons are placed into one row.
$settings['toolbar'] = array($settings['toolbar']);

If you only need one configuration of the buttons, you can modify the array accordingly.
Before the above line the array looks like this:

[0] => 'ButtonName1'
[1] => 'ButtonName2'
[2] =>...

If you insert an element containing a dash the toolbar can wrap at that point.
dash ("-") = separator
slash ("/") = forced break
http://docs.cksource.com/CKEditor_3.x/Developers_Guide/Toolbar

I inserted a separator after every element. It's not perfect, but it's better than it was before.

$xarray = $settings['toolbar'];
$settings['toolbar'] = array();
foreach($xarray as $xvalue){
  $settings['toolbar'][] = $xvalue;
  $settings['toolbar'][] = '-';
}
array_pop($settings['toolbar']);
$settings['toolbar'] = array($settings['toolbar']);

This was very helpful. Thank

jduguid's picture

This was very helpful. Thank you!

Wysiwyg

Group organizers

Group categories

Group notifications

This group offers an RSS feed. Or subscribe to these personalized, sitewide feeds: