changed onCreateMenu path to object
This commit is contained in:
parent
b801affd9c
commit
43ac83520d
|
@ -4373,7 +4373,7 @@ Node.prototype.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