Skip to content

ckeditor5-elements / ElementMenuConfig

Type Alias: ElementMenuConfig ​

ts
type ElementMenuConfig = (element, editor) => (ElementMenuItem | null | undefined)[];

Returns the items of the menu of the given element, e.g. as the elementContextMenu or elementBreadcrumbs.menu editor config option. Missing items (e.g. commands that are not registered) are skipped. No items means no menu.

Parameters ​

ParameterType
elementModelElement
editorEditor

Returns ​

(ElementMenuItem | null | undefined)[]