Posted by ltyszko on August 23, 2010 at 2:25pm
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
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
This was very helpful. Thank you!