Add call to onCreateMenu

This commit is contained in:
RobAley 2019-02-21 14:31:14 +00:00 committed by GitHub
parent aa577d2437
commit aec7308c78
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 0 deletions

View File

@ -201,6 +201,10 @@ function appendNodeFactory(Node) {
}
];
if (this.editor.options.onCreateMenu) {
items = this.editor.options.onCreateMenu(items, node.getPath());
}
var menu = new ContextMenu(items, {close: onClose});
menu.show(anchor, this.editor.content);
};