We've had this wonderful and powerful hook for some time, but it's not mentioned in wysiwyg.api.php.
Some of these are pretty obvious but included for sake of completeness.
I don't think this should hold up the release, but of course, we can commit anything that's ready.
From the listed sections, only basics and purpose should be documented for now. A brief sentence about audience/powers/limitations may be added, but I wouldn't want to "officially formalize" this hook's usage yet, as it's poor workaround for our API/feature limitations.
There is a way to know wich wysiwyg profile or input format is active inside this hook?
I'm trying to override Ckeditor toolbars here to circunvent the icons group limitation (no wrap).
Yes, the strings $context['profile']->format and $context['profile']->editor should have that information.
The profile object is the same one as retrieved from wysiwyg_profile_load($format).
EDIT: Fixed syntax, thanks!
Is $context['profile']->format, is not ?
Couldn't think of simple example code, so I left the function body empty.
How about this?
I added the comments to avoid questions about why something like this won't work:
Thanks for reporting, reviewing, and testing! Committed with minor adjustments to all branches.
A new development snapshot will be available within the next 12 hours. This improvement will be available in the next official release.
Automatically closed -- issue fixed for 2 weeks with no activity.
This issue has no child issues.
Drupal is a registered trademark of Dries Buytaert.