@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.cjs
CHANGED
|
@@ -3509,6 +3509,11 @@ class Editor extends EventEmitter {
|
|
|
3509
3509
|
* @param transaction An editor state transaction
|
|
3510
3510
|
*/
|
|
3511
3511
|
dispatchTransaction(transaction) {
|
|
3512
|
+
// if the editor / the view of the editor was destroyed
|
|
3513
|
+
// the transaction should not be dispatched as there is no view anymore.
|
|
3514
|
+
if (this.view.isDestroyed) {
|
|
3515
|
+
return;
|
|
3516
|
+
}
|
|
3512
3517
|
if (this.isCapturingTransaction) {
|
|
3513
3518
|
if (!this.capturedTransaction) {
|
|
3514
3519
|
this.capturedTransaction = transaction;
|