CKEDITOR.menu
class
Filtering
Methods
-
constructor() → menu
CKEDITOR.menu#constructor
-
add( item )
CKEDITOR.menu#add
-
addListener( listenerFn )
CKEDITOR.menu#addListener
Adds a callback executed on opening the menu. Items returned by that callback are added to the menu.
Parameters
listenerFn : Function
-
Finds the menu item corresponding to a given command.
Notice: Keep in mind that the menu is re-rendered on each opening, so caching items (especially DOM elements) may not work. Also executing this method when the menu is not visible may give unexpected results as the items may not be rendered.
Parameters
commandName : String
Returns
Object | null
return An object containing a given item. If the item was not found,
null
is returned.Propertiesitem : menuItem
The item definition.
element : element
The rendered element representing the item in the menu.
-
hide( [ returnFocus ] )
CKEDITOR.menu#hide
-
removeAll()
CKEDITOR.menu#removeAll
Removes all items.
-
show( offsetParent, [ corner ], [ offsetX ], [ offsetY ] )
CKEDITOR.menu#show
Shows the menu in given location.
Parameters
offsetParent : element
[ corner ] : Number
[ offsetX ] : Number
[ offsetY ] : Number