(function() {
    tinymce.create('tinymce.plugins.recras', {
        /**
         * Initializes the plugin, this will be executed after the plugin has been created.
         * This call is done before the editor instance has finished it's initialization so use the onInit event
         * of the editor instance to intercept that event.
         */
        init : function(ed, url) {
            ed.addButton('recras-arrangement', {
                title : 'Arrangement',
                image : url + '/arrangement.svg',
                onclick : function(){
                    tb_show('Arrangement', 'admin.php?page=form-arrangement');
                }
            });

            ed.addButton('recras-booking', {
                title : 'Online booking',
                image : url + '/calendar.svg',
                onclick : function(){
                    tb_show('Online booking', 'admin.php?page=form-booking');
                }
            });

            ed.addButton('recras-contact', {
                title : 'Contact Form',
                image : url + '/contact.svg',
                onclick : function(){
                    tb_show('Contact', 'admin.php?page=form-contact');
                }
            });

            ed.addButton('recras-product', {
                title : 'Product',
                image : url + '/product.svg',
                onclick : function(){
                    tb_show('Contact', 'admin.php?page=form-product');
                }
            });
        },

        getInfo : function() {
            return {
                longname : 'Recras arrangement shortcode',
                author : 'Recras',
                authorurl : 'https://www.recras.nl/',
                infourl : 'https://www.recras.nl/',
                version : "1.0.0"
            };
        }
    });

    tinymce.PluginManager.add('recras', tinymce.plugins.recras);
})();

@@ -851,32 +851,34 @@
                 
+//
 tb_show('Online 
@@ -915,24 +915,121 @@
 -booking');%0A
+                    tinyMCE.activeEditor.execCommand('mceInsertContent', 0, '%5Brecras-booking%5D');%0A
             

Make online booking button behave nicer