Change onCreateMenu to pass path rather than node
This commit is contained in:
parent
5d833d2131
commit
981ce535d1
|
@ -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});
|
||||
|
|
Loading…
Reference in New Issue