Change onCreateMenu to pass path rather than node

This commit is contained in:
RobAley 2019-02-21 14:23:40 +00:00 committed by GitHub
parent 5d833d2131
commit 981ce535d1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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});