@tiptap/core 2.0.0-beta.219 → 2.0.0-beta.220
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/package.json +2 -2
- package/src/Editor.ts +6 -0
package/dist/index.js
CHANGED
|
@@ -3505,6 +3505,11 @@ class Editor extends EventEmitter {
|
|
|
3505
3505
|
* @param transaction An editor state transaction
|
|
3506
3506
|
*/
|
|
3507
3507
|
dispatchTransaction(transaction) {
|
|
3508
|
+
// if the editor / the view of the editor was destroyed
|
|
3509
|
+
// the transaction should not be dispatched as there is no view anymore.
|
|
3510
|
+
if (this.view.isDestroyed) {
|
|
3511
|
+
return;
|
|
3512
|
+
}
|
|
3508
3513
|
if (this.isCapturingTransaction) {
|
|
3509
3514
|
if (!this.capturedTransaction) {
|
|
3510
3515
|
this.capturedTransaction = transaction;
|