Posted by pushka on November 21, 2012 at 8:21am
3 followers
Jump to:
| Project: | Wysiwyg |
| Version: | 7.x-2.2 |
| Component: | Editor - TinyMCE |
| Category: | support request |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed (fixed) |
Issue Summary
Hi
I'm using the TinyMCE Advanced Image plugin, and it offers various image alignment settings (baseline, top, middle, etc). I'd really like to limit the options to just left or right.
This answer is helpful and I've had a play with hook_wysiwyg_editor_settings_alter() but I haven't managed to achieve it.
I'm not really sure what settings are available to override. I tried dsm($settings['formats']) but didn't see anything relevant to formats or alignment.
Thanks!
Comments
#1
Wysiwyg doesn't currenrtly set the 'format' setting for TinyMCE, so
$settings['format']will always be empty unless you set it. The format setting controls what attributes or style properties are actually applied to certain DOM elements when TinyMCE is told to apply various style changes. It does however not control whether those style changes are available for application or not.I took a quick look in tinymce/jscripts/tiny_mce/plugins/advimage/image.htm and tinymce/jscripts/tiny_mce/plugins/advimage/js/image.js which contain the code for the advimage dialog and there does not appear to be a way to disable certain alignment options other than by hacking TinyMCE and remove the unwanted options from the select list in there.
Sorry, but there does not appear to be anything we can do about this in Wysiwyg module.
#2
Ok. Many thanks TwoD for looking into it!
#3
Automatically closed -- issue fixed for 2 weeks with no activity.