Sorry for my bad english...

I'm using CKEditor but i want a easy method for edit the toolbar like a CKEditor module. So I found a PHP Code for drag and drop buttons here:
http://drupal.org/node/829266#comment-3728188

Where do I enter this code?, In a View?, A page with PHP Filter?, Edit this module?...

Thanks...

Comments

twod’s picture

Component: Code » Editor - CKEditor
Status: Active » Fixed
Issue tags: -ckeditor

Comment #52 explains where to put it: #829266-52: Fixing toolbar for the CKeditor / Using the settings hook.
The function name ckeditor_custom_wysiwyg_editor_settings_alter(&$settings, $context) assumes you've replaced MYMODULE in that instruction with "ckeditor_custom". (It's common for custom site-specific modules to be named just "custom" so I'd have named the files custom.info, custom.module and the function custom_wysiwyg_editor_settings_alter(&$settings, $context)).

The .info file tells Drupal there's a module, and the .module file holds the main code, which in this case is an implementation of Wysiwyg's hook_wysiwyg_editor_settings_alter() (see wysiwyg.api.php for a description).

Dalejray’s picture

Hmm. thanks.

This custom module is for Drupal 6 or 7?.

twod’s picture

It works for both, just change the core = 6.x or core = 7.x line in the .info file to match the Drupal version you're using or it won't be possible to enable the module. Wysiwyg's API is currently the same for both D6 and D7.

Dalejray’s picture

Thanks... i will test this custom module

Status: Fixed » Closed (fixed)

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