From aec7308c783b71100e6304ac3eba2720e8a08eb7 Mon Sep 17 00:00:00 2001 From: RobAley Date: Thu, 21 Feb 2019 14:31:14 +0000 Subject: [PATCH] Add call to onCreateMenu --- src/js/appendNodeFactory.js | 4 ++++ 1 file changed, 4 insertions(+) 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);