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.

We've moved the forum!

Please use forum.silverstripe.org for any new questions (announcement).
The forum archive will stick around, but will be read only.

You can also use our Slack channel or StackOverflow to ask for help.
Check out our community overview for more options to contribute.

General Questions /

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

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

TinyMCE Edit Image onmouseover doesn't show up


Go to End


2 Posts   2649 Views

Avatar
hammuh

Community Member, 15 Posts

1 June 2011 at 8:55pm

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

Community Member, 1 Post

23 July 2012 at 8:32pm

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');