Sha256: e811593b896b21fd265fe2a144529ceb650c27b8d5a136f39ac14b00f497bff7
Contents?: true
Size: 1.09 KB
Versions: 909
Compression:
Stored size: 1.09 KB
Contents
tinymce.PluginManager.add('caboose', function(editor, url) { editor.addButton('caboose_save', { text: 'Save', icon: false, onclick: function() { var control = ModelBinder.tinymce_current_control(); if (!control) return; control.save(); } }); editor.addButton('caboose_cancel', { text: 'Cancel', icon: false, onclick: function() { var control = ModelBinder.tinymce_current_control(); if (!control) return; control.cancel(); } }); // Adds a menu item to the tools menu //editor.addMenuItem('example', { // text: 'Example plugin', // context: 'tools', // onclick: function() { // // Open window with a specific url // editor.windowManager.open({ // title: 'TinyMCE site', // url: 'http://www.tinymce.com', // width: 800, // height: 600, // buttons: [{ // text: 'Close', // onclick: 'close' // }] // }); // } //}); });
Version data entries
909 entries across 909 versions & 1 rubygems