feat: add ignoreMutation option to NodeViewRenderer, fix #1538
This commit is contained in:
@@ -52,9 +52,10 @@ export const nodeViewProps = {
|
||||
},
|
||||
}
|
||||
|
||||
interface VueNodeViewRendererOptions {
|
||||
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<Component, Editor> {
|
||||
|
||||
Reference in New Issue
Block a user