Copied to clipboard

Flag this post as spam?

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


  • Lasse 41 posts 152 karma points
    Jul 10, 2019 @ 09:31
    Lasse
    0

    Tinymce: How to enable plugins

    Hi forum,

    I have been looking around umbraco forum and google, in search for a guide or something to help me enable plugins that is not loaded by default from tinymce. So far i have only been able to find: textcolor, font size and font type.

    I can see umbraco comes with a list of plugins for tinymce, what i havn't figured out so far, is how to know the plugin's alias, or how to enable a specific plugin like image tools

    This is an example of how to enable font type selector

        <command>
           <umbracoAlias>mcefontselect</umbracoAlias>
           <icon>images/editor/fontselect.png</icon>
           <tinyMceCommand value="" userInterface="true" 
           frontendCommand="fontselect">fontselect</tinyMceCommand>
           <priority>17</priority>
        </command>
    

    Snippet of the list of plugins

    snippet list

  • Nigel Wilson 915 posts 2002 karma points
    Aug 08, 2019 @ 19:08
    Nigel Wilson
    0

    Hi Lasse

    I am wanting to create a custom plugin and so have started looking into Tincy MCE plugins.

    Co-incidentally I have found a solution to your question, so here I am !!!

    I have just activated the emoticons plugin by adding the following to the TinyMCEConfig.config

    In the commands section I added:

    <command>
    <umbracoAlias>mceEmoticons</umbracoAlias>
    <name>Emoticons</name>
    <icon>images/editor/emoticons.gif</icon>
    <tinyMceCommand value="" userInterface="false" frontendCommand="emoticons">emoticons</tinyMceCommand>
    <priority>75</priority>
    </command>
    

    In the plugins section I added:

    <plugin loadOnFrontend="true">emoticons</plugin>
    

    Then you might have to recycle the application pool / restart the website (if setup locally). If you don't have a local site setup you might have to do a restart of your PC to see the change in the Developer section, and therefore be able to activate the plugin in the RTE toolbar.

    Cheers

    Nigel

Please Sign in or register to post replies

Write your reply to:

Draft