From b48f084cf58ae51b0dce7a0de13af90066db242e Mon Sep 17 00:00:00 2001 From: RobAley Date: Mon, 25 Feb 2019 16:02:35 +0000 Subject: [PATCH] Change oncreatemenu path to object --- src/js/appendNodeFactory.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/appendNodeFactory.js b/src/js/appendNodeFactory.js index 5f74fc0..13419aa 100644 --- a/src/js/appendNodeFactory.js +++ b/src/js/appendNodeFactory.js @@ -202,7 +202,7 @@ function appendNodeFactory(Node) { ]; 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});