Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Stefan 39 posts 70 karma points
    Feb 18, 2015 @ 17:24
    Stefan
    0

    Custom button in tinymce

    I have many macros in my umbuco instalation . I would like to create a button in the tinymce enitor that triggers just one of these macros , so that a user doesnt have to click the macrobutton and go throught the list of macros .

     

    Is this possible?

  • Jan Skovgaard 11280 posts 23678 karma points MVP 10x admin c-trib
    Feb 18, 2015 @ 22:50
    Jan Skovgaard
    0

    Hi Stefan

    I think it is but unfortunately I don't know exactly how to implement it. However you will need to look at the tinymce documentation first of all. And it seems that there is some information about it here http://www.tinymce.com/wiki.php/api4:method.tinymce.Editor.addButton

    Next you will need to figure out how to configure this in Umbraco. For what it's worth there are some configuration options in the /config/TinyMceConfig.config file, which may be all that you need to extend.

    Otherwise it might be necessary to modify the core implementation of tinymce.

    Hope this is enough to at least get you started.

    /Jan

Please Sign in or register to post replies

Write your reply to:

Draft