Five New Optimizely Certifications are Here! Validate your expertise and advance your career with our latest certification exams. Click here to find out more

TinyMce plugin, how to add buttons in the actionContainerNode in the bottom?

Vote:
 

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

#177273
Edited, Apr 06, 2017 15:35
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.