Class contextMenu

Hierarchy

Index

Constructor methods

Methods

Constructor methods

constructor(editor: editor): contextMenu

Parameters

Returns

contextMenu

Methods

public add(item: any)

Parameters

  • item: any

public addListener(listenerFn: (startElement: CKEDITOR.dom.element, selection: CKEDITOR.dom.selection, path: CKEDITOR.dom.elementPath) => any)

Parameters

  • listenerFn: (startElement: CKEDITOR.dom.element, selection: CKEDITOR.dom.selection, path: CKEDITOR.dom.elementPath) => any

public addTarget(element: element, nativeContextMenuOnCtrl?: boolean)

Parameters

  • element: element
  • nativeContextMenuOnCtrl?: boolean optional

public hide(returnFocus?: boolean)

Parameters

  • returnFocus?: boolean optional

public open(offsetParent: element, corner?: number, offsetX?: number, offsetY?: number)

Parameters

  • offsetParent: element
  • corner?: number optional
  • offsetX?: number optional
  • offsetY?: number optional

public removeAll()

public show(offsetParent: element, corner?: number, offsetX?: number, offsetY?: number)

Parameters

  • offsetParent: element
  • corner?: number optional
  • offsetX?: number optional
  • offsetY?: number optional