diff --git a/src/js/Node.js b/src/js/Node.js index d478300..a19018d 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); + items = this.editor.options.onCreateMenu(items, node.getPath()); } var menu = new ContextMenu(items, {close: onClose});