Jump to:

22977 Posts in 11806 Topics by 2826 members

General Questions

SilverStripe Forums » General Questions » TinyMCE Edit Image onmouseover doesn't show up

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

Page: 1
Go to End
Author Topic: 1213 Views
  • hammuh
    Avatar
    Community Member
    15 Posts

    TinyMCE Edit Image onmouseover doesn't show up Link to this post

    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.

  • kaynetoad
    Avatar
    Community Member
    1 Post

    Re: TinyMCE Edit Image onmouseover doesn't show up Link to this 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');

    1213 Views
Page: 1
Go to Top

Want to know more about the company that brought you SilverStripe? Then check out SilverStripe.com

Comments on this website? Please give feedback.