@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.umd.js
CHANGED
|
@@ -3503,6 +3503,11 @@ img.ProseMirror-separator {
|
|
|
3503
3503
|
* @param transaction An editor state transaction
|
|
3504
3504
|
*/
|
|
3505
3505
|
dispatchTransaction(transaction) {
|
|
3506
|
+
// if the editor / the view of the editor was destroyed
|
|
3507
|
+
// the transaction should not be dispatched as there is no view anymore.
|
|
3508
|
+
if (this.view.isDestroyed) {
|
|
3509
|
+
return;
|
|
3510
|
+
}
|
|
3506
3511
|
if (this.isCapturingTransaction) {
|
|
3507
3512
|
if (!this.capturedTransaction) {
|
|
3508
3513
|
this.capturedTransaction = transaction;
|