feat: add ignoreMutation option to NodeViewRenderer, fix #1538

This commit is contained in:
Philipp Kühn
2021-07-26 18:44:02 +02:00
parent 03e4e8ea2b
commit 651e6911e3
5 changed files with 11 additions and 2 deletions

View File

@@ -49,6 +49,7 @@ export const nodeViewProps = {
export interface VueNodeViewRendererOptions {
stopEvent: ((event: Event) => boolean) | null,
update: ((node: ProseMirrorNode, decorations: Decoration[]) => boolean) | null,
ignoreMutation: ((mutation: MutationRecord | { type: 'selection', target: Element }) => boolean) | null,
}
class VueNodeView extends NodeView<(Vue | VueConstructor), Editor> {