feat: add deleteNode method to node views

This commit is contained in:
Philipp Kühn
2021-05-19 00:01:49 +02:00
parent 0f299d228e
commit fcee5f82c6
7 changed files with 24 additions and 0 deletions

View File

@@ -31,6 +31,7 @@ class ReactNodeView extends NodeView<React.FunctionComponent, Editor> {
extension: this.extension,
getPos: () => this.getPos(),
updateAttributes: (attributes = {}) => this.updateAttributes(attributes),
deleteNode: () => this.deleteNode(),
}
if (!(this.component as any).displayName) {