Skip to content

Commit

Permalink
Add call to onCreateMenu
Browse files Browse the repository at this point in the history
  • Loading branch information
RobAley authored Feb 21, 2019
1 parent 981ce53 commit aa577d2
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/js/treemode.js
Original file line number Diff line number Diff line change
Expand Up @@ -1693,6 +1693,10 @@ treemode.showContextMenu = function (anchor, onClose) {
Node.onRemove(selectedNodes);
}
});

if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, node.getPath());
}

var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.frame);
Expand Down

0 comments on commit aa577d2

Please sign in to comment.