Changeset 26897
- Timestamp:
- 01/02/2014 07:02:52 AM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/wp-includes/js/tinymce/plugins/compat3x/plugin.js
r26890 r26897 128 128 } 129 129 130 function cmNoop() { 131 var obj = {}, methods = 'add addMenu addSeparator collapse createMenu destroy displayColor expand focus ' + 132 'getLength hasMenus hideMenu isActive isCollapsed isDisabled isRendered isSelected mark ' + 133 'postRender remove removeAll renderHTML renderMenu renderNode renderTo select selectByIndex ' + 134 'setActive setAriaProperty setColor setDisabled setSelected setState showMenu update'; 135 136 log('editor.controlManager.*'); 137 138 function _noop() { 139 return cmNoop(); 140 } 141 142 tinymce.each( methods.split(' '), function( method ) { 143 obj[method] = _noop; 144 }); 145 146 return obj; 147 } 148 130 149 editor.controlManager = { 131 150 buttons: {}, … … 145 164 this.buttons[name].active(state); 146 165 } 147 } 166 }, 167 168 onAdd: new Dispatcher(), 169 onPostRender: new Dispatcher(), 170 171 add: function(obj) { return obj; }, 172 createButton: cmNoop, 173 createColorSplitButton: cmNoop, 174 createControl: cmNoop, 175 createDropMenu: cmNoop, 176 createListBox: cmNoop, 177 createMenuButton: cmNoop, 178 createSeparator: cmNoop, 179 createSplitButton: cmNoop, 180 createToolbar: cmNoop, 181 createToolbarGroup: cmNoop, 182 destroy: noop, 183 get: noop, 184 setControlType: cmNoop 148 185 }; 149 186
Note: See TracChangeset
for help on using the changeset viewer.