Copied to clipboard

Flag this post as spam?

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


  • James Kahler 36 posts 78 karma points
    Jul 11, 2014 @ 18:21
    James Kahler
    0

    Custom TinyMCE plugin angularjs scope

    Hi

    I'm trying to create a custom plugin for tinymce in umbraco 7. i've got no problem creating the plugin. But i want to call the dialog service.

    What i can't work out is how to pass $scope and dialogservice into the plugin.

    I could do it by adding to the umbraco source in the tinyMceService and the RTEController but i don't really want to add to the source. Will i be able to do this using tinymce.PluginManager can i wrap it in some angular method? My angularjs knowledge is limited at best.

    tinymce.PluginManager.add('pluginname', function (editor) {
    
    editor.addButton('pluginname', {
        icon: 'custom icon-picture',
        tooltip: '',
        onclick: function () {
    
        }
    
    });
    

    Any help gratefully appreciated.

  • Jason 113 posts 626 karma points
    Jan 27, 2016 @ 16:26
    Jason
    0

    This is an old post but I am looking for the answer to this question as well. Can any one point me in the right direction?

    UPDATE:

    I figured out the issue, answer here: https://our.umbraco.org/forum/developers/extending-umbraco/74777-how-do-yo-access-the-umbrace-angular-services-from-a-custom-tinymce-button-plugin

Please Sign in or register to post replies

Write your reply to:

Draft