Copied to clipboard

Flag this post as spam?

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


  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Sep 16, 2015 @ 21:43
    Alex Skrypnyk
    0

    Custom Button at TinyMCE

    Hi,

    we need a new button to be added to the umbraco tinymce editor that will wrap

    to the selected text.

    Thanks

  • Samira 113 posts 452 karma points
    Sep 17, 2015 @ 05:05
  • Tommy Enger 72 posts 277 karma points c-trib
    Jan 26, 2016 @ 13:04
    Tommy Enger
    0

    Hi Alex. Were you able to solve the task? What approach did you choose?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    Jan 26, 2016 @ 13:11
    Alex Skrypnyk
    103

    Hi Tommy,

    Yes, we added the custom button.

    New js file to \Umbraco\lib\tinymce\plugins\pluginName\plugin.min.js:

    tinymce.PluginManager.add('pluginName', function (editor) {
    
       editor.addButton('pluginName', {
    
           icon: 'custom icon-book-alt',
    
           tooltip: 'plugin Name',
    
           onclick: function (e) {
    
           }
       });
    });
    

    New section to config\tinyMceConfig.config:

    <command>
         <umbracoAlias>pluginName</umbracoAlias>
         <icon>images/editor/code.gif</icon>
         <tinyMceCommand value="" userInterface="true" frontendCommand="pluginName">pluginName</tinyMceCommand>
         <priority>75</priority>
       </command>
    

    Thanks,

    Alex

  • Rhys Mitchell 28 posts 195 karma points
    May 18, 2017 @ 10:14
    Rhys Mitchell
    0

    Hi Alex,

    You wouldn't happen to know how to edit config\tinyMceConfig.config using package actions would you?

  • Alex Skrypnyk 6182 posts 24283 karma points MVP 8x admin c-trib
    May 18, 2017 @ 20:28
    Alex Skrypnyk
    0

    Hi Rhys

    Sadly, I don't know an easy way to do it. Please share with us if you found out )

    Alex

  • This forum is in read-only mode while we transition to the new forum.

    You can continue this topic on the new forum by tapping the "Continue discussion" link below.

    Continue discussion

Please Sign in or register to post replies