November Happy Hour will be moved to Thursday December 5th.
Hi!
I have built a plugin to tinymce and it works just fine. But I want to have buttons like OK and Cancel in the bottom of the popup.
This is what the bottom html look like:
The inner div is empty and that is where I want to have my buttons.
This is how my plugin look and where I want the buttons to be:
And this is how I load my plugin:
(function (tinymce) { tinymce.create('tinymce.plugins.ConnectorPlugin', { init: function (ed, url) { // Register commands ed.addCommand('mceCustomTable', function () { ed.windowManager.open({ file: url + '/Connect/Connector/Index', width: 320, height: 200, inline: 1 }, { plugin_url: url }); }); // Register buttons ed.addButton('btnConnectorPlugin', { title: 'Insert Custom Table', cmd: 'mceCustomTable', image: '~/modules/Connector/editor/tinymce/plugins/ConnectorPlugin/img/customtable.gif' }); }, getInfo: function () { return { longname: 'Custom Tables', author: 'Authority AB', authorurl: 'http://www.authority.se', infourl: 'http://www.authority.se', version: tinymce.majorVersion + "." + tinymce.minorVersion }; } }); // Register plugin tinymce.PluginManager.add('ConnectorPlugin', tinymce.plugins.ConnectorPlugin); })(tinymce);
Thanks!
/Kristoffer
Hi!
I have built a plugin to tinymce and it works just fine. But I want to have buttons like OK and Cancel in the bottom of the popup.
This is what the bottom html look like:
The inner div is empty and that is where I want to have my buttons.
This is how my plugin look and where I want the buttons to be:
And this is how I load my plugin:
Thanks!
/Kristoffer