I have been waiting for this feature since the 1st version of WYSIWYG module, but look like it's not going to be implemented in 3.0 (or maybe 4.0). So I decide to spend a few days on weekend to implement this feature.

And here is the result

What I have done:

- implement Toolbar Designer based on jQuery & jQuery UI
- add dependencies to jquery_update & jquery_ui (for the drag & drop)
- remove the $profile->settings['buttons'] and replace with $profile->settings['toolbar'] and $profile->settings['extensions']
- replace the old "Buttons and Plugins" fieldset with "Extension" fieldset.
- Update tinymce & ckeditor to work with the new toolbar designer

The down side:

- I use jQuery UI 1.7 instead of 1.6 (1.6 is very draggable & sortable is very buggy), so I have to use jquery_update 2.x to have jquery 1.3 available.

Please give comments & feedback, I hope we will have a Toolbar designer for 3.x or even 2.x.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

nquocbao’s picture

nquocbao’s picture

Assigned: Unassigned » nquocbao
Canine Coaches’s picture

subscribing to check out later this week when I have time. sounds cool.

thanks.

Chris

TwoD’s picture

Status: Active » Closed (duplicate)

Wow! We did make something like this a requirement for 3.x so your patch has a good chance of making it in there, but like you say the new dependencies are a downside which we'll have to consider more carefully. (Perhaps it would be possible to make this designer optional, depending on whether those modules are installed and fall back to another solution?)

I don't have time to do a complete review of the patch now but I'll get back here asap. There are quite a lot of indentation issues (2 spaces per step) and non-empty spacing lines which pop out when reviewing in Dreditor that need to be fixed tho.
I'm afraid I'll have to mark this as a duplicate of #277954: Allow to sort editor buttons, would you mind posting your patch there instead? That issue already has a lot of subscribers who are interested in solutions to this problem and it's likely they'll help test it.

nquocbao’s picture

I will do a clean up before submitting the patch to #277954: Allow to sort editor buttons