From 43ac83520d3a462af6b262e19aa648cf47fe2dda Mon Sep 17 00:00:00 2001 From: RobAley Date: Mon, 25 Feb 2019 16:00:40 +0000 Subject: [PATCH] changed onCreateMenu path to object --- src/js/Node.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/Node.js b/src/js/Node.js index a19018d..cdc48a1 100644 --- a/src/js/Node.js +++ b/src/js/Node.js @@ -4373,7 +4373,7 @@ Node.prototype.showContextMenu = function (anchor, onClose) { } if (this.editor.options.onCreateMenu) { - items = this.editor.options.onCreateMenu(items, node.getPath()); + items = this.editor.options.onCreateMenu(items, { path : node.getPath() }); } var menu = new ContextMenu(items, {close: onClose});