Add call to onCreateMenu
This commit is contained in:
parent
aa577d2437
commit
aec7308c78
|
@ -200,6 +200,10 @@ function appendNodeFactory(Node) {
|
||||||
'submenu': appendSubmenu
|
'submenu': appendSubmenu
|
||||||
}
|
}
|
||||||
];
|
];
|
||||||
|
|
||||||
|
if (this.editor.options.onCreateMenu) {
|
||||||
|
items = this.editor.options.onCreateMenu(items, node.getPath());
|
||||||
|
}
|
||||||
|
|
||||||
var menu = new ContextMenu(items, {close: onClose});
|
var menu = new ContextMenu(items, {close: onClose});
|
||||||
menu.show(anchor, this.editor.content);
|
menu.show(anchor, this.editor.content);
|
||||||
|
|
Loading…
Reference in New Issue