@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.cjs +5 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +5 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/packages/core/src/Extension.d.ts +8 -8
- package/dist/packages/core/src/types.d.ts +5 -0
- package/package.json +3 -3
- package/src/Editor.ts +5 -0
- package/src/Extension.ts +8 -8
- package/src/types.ts +1 -0
package/dist/index.umd.js
CHANGED
|
@@ -4205,6 +4205,11 @@ img.ProseMirror-separator {
|
|
|
4205
4205
|
}
|
|
4206
4206
|
const state = this.state.apply(transaction);
|
|
4207
4207
|
const selectionHasChanged = !this.state.selection.eq(state.selection);
|
|
4208
|
+
this.emit('beforeTransaction', {
|
|
4209
|
+
editor: this,
|
|
4210
|
+
transaction,
|
|
4211
|
+
nextState: state,
|
|
4212
|
+
});
|
|
4208
4213
|
this.view.updateState(state);
|
|
4209
4214
|
this.emit('transaction', {
|
|
4210
4215
|
editor: this,
|