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 .
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.
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?
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
is working on a reply...