Changeset 934715
- Timestamp:
- 06/18/2014 09:10:16 PM (12 years ago)
- File:
-
- 1 edited
-
idxpro/trunk/tinymce/editor_plugin.js (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
idxpro/trunk/tinymce/editor_plugin.js
r717451 r934715 36 36 37 37 // Register idxpro_embed button 38 /*ed.addButton('idxpro_embed', {38 ed.addButton('idxpro_embed', { 39 39 title : 'Embed IDXPro Application or Widget', 40 40 //cmd : 'mceidxpro_embed', … … 50 50 ed.execCommand('mceInsertContent', false, "[idxpro]"); 51 51 } 52 }); */52 }); 53 53 54 54 // Add a node change handler, selects the button in the UI when a image is selected … … 68 68 * @return {tinymce.ui.Control} New control instance or null if no control was created. 69 69 */ 70 createControl : function(n, cm) {71 switch (n) {72 case 'idxpro_embed':73 {74 c = cm.createSplitButton(n, {title : 'IDXPro', image : pl_url + '/idxpro_button.png'});75 c.onRenderMenu.add( function(c, m) {76 each( idx_widget_buttons, function( v, k ) { m.add( { title : v.title, onclick : function() { tinyMCE.activeEditor.execCommand( 'mceInsertContent', false, v.value); } } ).setDisabled( 0 ); } );77 } );78 return c;79 }80 }81 return null;82 },70 // createControl : function(n, cm) { 71 // switch (n) { 72 // case 'idxpro_embed': 73 // { 74 // c = cm.createSplitButton(n, {title : 'IDXPro', image : pl_url + '/idxpro_button.png'}); 75 // c.onRenderMenu.add( function(c, m) { 76 // each( idx_widget_buttons, function( v, k ) { m.add( { title : v.title, onclick : function() { tinyMCE.activeEditor.execCommand( 'mceInsertContent', false, v.value); } } ).setDisabled( 0 ); } ); 77 // } ); 78 // return c; 79 // } 80 // } 81 // return null; 82 // }, 83 83 84 84 /**
Note: See TracChangeset
for help on using the changeset viewer.