You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -138,13 +137,83 @@ export class BlockNoteTipTapEditor extends TiptapEditor {
138
137
returnthis._state;
139
138
}
140
139
141
-
dispatch(tr: Transaction){
142
-
if(this.view){
143
-
this.view.dispatch(tr);
144
-
}else{
140
+
dispatch(transaction: Transaction){
141
+
if(!this.view){
145
142
// before view has been initialized
146
-
this._state=this.state.apply(tr);
143
+
this._state=this.state.apply(transaction);
144
+
return;
145
+
}
146
+
// This is a verbatim copy of the default dispatch method, but with the following changes:
147
+
// - We provide the appendedTransactions to a new `v3-update` event
148
+
// In the future, we can remove this dispatch method entirely and rely on the new `update` event signature which does what we want by providing the appendedTransactions
0 commit comments