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 () {
}
});
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.
Any help gratefully appreciated.
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
is working on a reply...