Skip to main content

This site requires you to update your browser. Your browsing experience maybe affected by not having the most up to date version.

General Questions

General questions about getting started with SilverStripe that don't fit in any of the categories above.

Moderators: martimiz, Sean, biapar, Willr, Ingo, swaiba, simon_w

TinyMCE Edit Image onmouseover doesn't show up


Reply

2 Posts   1369 Views

Avatar
hammuh

1 June 2011 at 8:55pm Community Member, 15 Posts

Hi Guys,
There is a lot written about the tinymce and the 'extended_valid_elements'. But whatever I do, if I right click on an image in de editor and choose for 'edit image', there is no OnMouseover or OnMouseoutField. In my config.php I have this

HtmlEditorConfig::get('cms')->setOption('extended_valid_elements', 'img[class|src|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name|usemap]');

So it should be enabled.

Anyone has a clue? Thanx in advance.

Avatar
kaynetoad

23 July 2012 at 8:32pm Community Member, 1 Post

Hi

The 'extended_valid_elements' option only specifies what elements and attributes TinyMCE is allowed to include in the output HTML.

If you want to display the dialog box that allows you to specify the onmouseover and onmouseout fields, you need to enable the 'advimage' plugin by calling

HtmlEditorConfig::get('cms')->enablePlugins('advimage');