Copied to clipboard

Flag this post as spam?

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


  • Kevon K. Hayes 255 posts 281 karma points
    Oct 25, 2010 @ 19:11
    Kevon K. Hayes
    0

    Create new Button for TinyMCE and Map it to JS function

    UMB Experts,

    UMB 4.5.2 | SVR 2008
    I was wondering if anyone could shed a bit more light as to how to correctly map the JS Fuction here: http://tinymce.moxiecode.com/examples/example_18.php
    to my my custom button on the Tiny RTE.

    I already created a folder in the tinymce3/plugins/ directory to house my icon and js
    I added a command element like so:
    <command>
       <umbracoAlias>corInfoTemplate</umbracoAlias>
       <icon>../umbraco_client/tinymce3/plugins/corinfopanel/homepagepanel.png</icon>
       <tinyMceCommand value="" userInterface="true"frontendCommand="template">corInfoTemplate</tinyMceCommand>   
       <priority>76</priority>
    </command>

    and a plugin element like so
    <plugin loadOnFrontend="true">corInfoTemplate</plugin>

    I see the icon on the RichtextEditor Datatype in the Developer Section, however in the content section the Tiny RTE toolbar doesn't appear now...

     

Please Sign in or register to post replies

Write your reply to:

Draft