CKEditor 4 Documentation

CKEDITOR.plugins.contextMenu

Hierarchy

CKEDITOR.menu
CKEDITOR.plugins.contextMenu

Files

Class replacing the non-configurable native context menu with a configurable CKEditor's equivalent.

Defined By

Methods

Creates the CKEDITOR.plugins.contextMenu class instance. ...

Creates the CKEDITOR.plugins.contextMenu class instance.

Parameters

Returns

Overrides: CKEDITOR.menu.constructor

Adds an item. ...

Adds an item.

Parameters

  • item : Object
Adds a callback executed on opening the menu. ...

Adds a callback executed on opening the menu. Items returned by that callback are added to the menu.

Parameters

CKEDITOR.plugins.contextMenu
view source
( element, [nativeContextMenuOnCtrl] )
Starts watching on native context menu triggers (Option key, right click) on the given element. ...

Starts watching on native context menu triggers (Option key, right click) on the given element.

Parameters

Hides the menu. ...

Hides the menu.

Parameters

  • returnFocus : Boolean (optional)
CKEDITOR.plugins.contextMenu
view source
( offsetParent, [corner], [offsetX], [offsetY] )
Opens the context menu in the given location. ...

Opens the context menu in the given location. See the CKEDITOR.menu.show method.

Parameters

  • offsetParent : CKEDITOR.dom.element
  • corner : Number (optional)
  • offsetX : Number (optional)
  • offsetY : Number (optional)
Removes all items. ...

Removes all items.

( offsetParent, [corner], [offsetX], [offsetY] )
Shows the menu in given location. ...

Shows the menu in given location.

Parameters

  • offsetParent : CKEDITOR.dom.element
  • corner : Number (optional)
  • offsetX : Number (optional)
  • offsetY : Number (optional)