change oncreatemenu path to object
This commit is contained in:
parent
b48f084cf5
commit
74272397b4
|
@ -1695,7 +1695,7 @@ treemode.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});
|
||||
|
|
Loading…
Reference in New Issue