+ tinymce.PluginManager.add('my_mce_button', function( editor, url ) {
+ editor.addButton( 'my_mce_button', {
+ title: 'Red Six Components',
+ icon: 'icon redsix-mce-icon',
+ text: 'Spotlight Boxes',
+ editor.windowManager.open( {
+ title: 'Insert a spotlight box',
+ onsubmit: function( e ) {
+ editor.insertContent( '[spotlightbox title="' + e.data.txtTitle + '" text="' + e.data.txtContent + '" url="' + e.data.txtURL + '"]');
+ editor.selection.setContent('<div class="col-sm-6">' + editor.selection.getContent() + '</div>');
+ text: 'One Third (1/3)',
+ editor.selection.setContent('<div class="col-sm-4">' + editor.selection.getContent() + '</div>');
+ text: 'Two Thirds (2/3)',
+ editor.selection.setContent('<div class="col-sm-8">' + editor.selection.getContent() + '</div>');
+ editor.selection.setContent('<h2 class="section-title">' + editor.selection.getContent() + '</h2>');
+ editor.selection.setContent('<h3 class="small-title">' + editor.selection.getContent() + '</h3>');
+ editor.selection.setContent('<span class="fs-14">' + editor.selection.getContent() + '</span>');
+ editor.selection.setContent('<span class="fs-22">' + editor.selection.getContent() + '</span>');
+ editor.selection.setContent('<span class="fs-36">' + editor.selection.getContent() + '</span>');
+ editor.selection.setContent('<span class="fs-48">' + editor.selection.getContent() + '</span>');
+ editor.selection.setContent('<span class="menu-price">' + editor.selection.getContent() + '</span>');