diff --git a/src/js/appendNodeFactory.js b/src/js/appendNodeFactory.js index d3a675a..5f74fc0 100644 --- a/src/js/appendNodeFactory.js +++ b/src/js/appendNodeFactory.js @@ -200,6 +200,10 @@ function appendNodeFactory(Node) { 'submenu': appendSubmenu } ]; + + if (this.editor.options.onCreateMenu) { + items = this.editor.options.onCreateMenu(items, node.getPath()); + } var menu = new ContextMenu(items, {close: onClose}); menu.show(anchor, this.editor.content);