@tiptap/core 2.5.0-beta.6 → 2.5.0-pre.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4209,6 +4209,11 @@ class Editor extends EventEmitter {
4209
4209
  }
4210
4210
  const state = this.state.apply(transaction);
4211
4211
  const selectionHasChanged = !this.state.selection.eq(state.selection);
4212
+ this.emit('beforeTransaction', {
4213
+ editor: this,
4214
+ transaction,
4215
+ nextState: state,
4216
+ });
4212
4217
  this.view.updateState(state);
4213
4218
  this.emit('transaction', {
4214
4219
  editor: this,