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

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.js CHANGED
@@ -4207,6 +4207,11 @@ class Editor extends EventEmitter {
4207
4207
  }
4208
4208
  const state = this.state.apply(transaction);
4209
4209
  const selectionHasChanged = !this.state.selection.eq(state.selection);
4210
+ this.emit('beforeTransaction', {
4211
+ editor: this,
4212
+ transaction,
4213
+ nextState: state,
4214
+ });
4210
4215
  this.view.updateState(state);
4211
4216
  this.emit('transaction', {
4212
4217
  editor: this,