Changeset 7022 for CKEditor/trunk
- Timestamp:
- 06/08/11 16:44:32 (2 years ago)
- File:
-
- 1 edited
-
CKEditor/trunk/_source/plugins/menu/plugin.js (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/_source/plugins/menu/plugin.js
r6985 r7022 15 15 groupsOrder[ groups[ i ] ] = i + 1; 16 16 17 /** 18 * Register to the editor's context menu an item group for later association with menu items. 19 * @name CKEDITOR.editor.prototype.addMenuGroup 20 * @param {String} name Specify a group name. 21 * @param {Number} [order=100] Define the display sequence of this group inside menu, smaller value get displayed ahead. 22 */ 17 23 editor.addMenuGroup = function( name, order ) 18 24 { … … 20 26 }; 21 27 28 /** 29 * Add to the editor's context menu an item from the specified definition. 30 * @name CKEDITOR.editor.prototype.addMenuItem 31 * @param {String} name The menu item name. 32 * @param {CKEDITOR.menu.definition} definition The menu item definition. 33 */ 22 34 editor.addMenuItem = function( name, definition ) 23 35 { … … 26 38 }; 27 39 40 /** 41 * Add to the editor's context menu one or more items from the specified definition array. 42 * @name CKEDITOR.editor.prototype.addMenuItems 43 * @param {Array} definitions List of definitions for each of them as if {@link CKEDITOR.editor.addMenuItem} is called. 44 */ 28 45 editor.addMenuItems = function( definitions ) 29 46 { … … 34 51 }; 35 52 53 /** 54 * Retrieve from the editor's context menu a particular menu item definition. 55 * @name CKEDITOR.editor.prototype.getMenuItem 56 * @param {String} name The name of the wanted menu item. 57 * @return {CKEDITOR.menu.definition} 58 */ 36 59 editor.getMenuItem = function( name ) 37 60 { … … 39 62 }; 40 63 64 /** 65 * Remove from the editor's context menu a particular menu item which was added before. 66 * @name CKEDITOR.editor.prototype.removeMenuItem 67 * @param {String} name The name of the wanted menu item. 68 */ 41 69 editor.removeMenuItem = function( name ) 42 70 {
Note: See TracChangeset
for help on using the changeset viewer.
