From 4e2b0b298fe551fa1115a700708c9b90c65de6cf Mon Sep 17 00:00:00 2001 From: ocavue Date: Tue, 24 Dec 2024 19:08:30 +1100 Subject: [PATCH] fix ignoreMutation --- src/tableview.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/tableview.ts b/src/tableview.ts index 22444fc..469a430 100644 --- a/src/tableview.ts +++ b/src/tableview.ts @@ -1,5 +1,5 @@ import { Node } from 'prosemirror-model'; -import { NodeView } from 'prosemirror-view'; +import { NodeView, ViewMutationRecord } from 'prosemirror-view'; import { CellAttrs } from './util'; /** @@ -36,7 +36,7 @@ export class TableView implements NodeView { return true; } - ignoreMutation(record: MutationRecord): boolean { + ignoreMutation(record: ViewMutationRecord): boolean { return ( record.type == 'attributes' && (record.target == this.table || this.colgroup.contains(record.target))