@blocknote/core 0.42.0 → 0.42.2
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/blocknote.cjs +1 -1
- package/dist/blocknote.cjs.map +1 -1
- package/dist/blocknote.js +1 -16
- package/dist/blocknote.js.map +1 -1
- package/dist/tsconfig.tsbuildinfo +1 -1
- package/dist/webpack-stats.json +1 -1
- package/package.json +1 -1
- package/src/editor/BlockNoteEditor.test.ts +1 -1
- package/src/editor/BlockNoteEditor.ts +1 -27
- package/types/src/editor/BlockNoteEditor.d.ts +0 -4
package/dist/blocknote.js
CHANGED
|
@@ -5863,28 +5863,13 @@ class Kt extends Ne {
|
|
|
5863
5863
|
* @warning Not needed to call manually when using React, use BlockNoteView to take care of mounting
|
|
5864
5864
|
*/
|
|
5865
5865
|
d(this, "mount", (e) => {
|
|
5866
|
-
if (
|
|
5867
|
-
// If the editor is scheduled for destruction, and
|
|
5868
|
-
this.scheduledDestructionTimeout && // If the editor is being remounted to the same element as the one which is scheduled for destruction,
|
|
5869
|
-
// then just cancel the destruction timeout
|
|
5870
|
-
this.prosemirrorView.dom === e
|
|
5871
|
-
) {
|
|
5872
|
-
clearTimeout(this.scheduledDestructionTimeout), this.scheduledDestructionTimeout = void 0;
|
|
5873
|
-
return;
|
|
5874
|
-
}
|
|
5875
5866
|
this._tiptapEditor.mount({ mount: e });
|
|
5876
5867
|
});
|
|
5877
|
-
/**
|
|
5878
|
-
* Timeout to schedule the {@link unmount}ing of the editor.
|
|
5879
|
-
*/
|
|
5880
|
-
d(this, "scheduledDestructionTimeout");
|
|
5881
5868
|
/**
|
|
5882
5869
|
* Unmount the editor from the DOM element it is bound to
|
|
5883
5870
|
*/
|
|
5884
5871
|
d(this, "unmount", () => {
|
|
5885
|
-
this.
|
|
5886
|
-
this._tiptapEditor.unmount(), this.scheduledDestructionTimeout = void 0;
|
|
5887
|
-
}, 1);
|
|
5872
|
+
this._tiptapEditor.unmount();
|
|
5888
5873
|
});
|
|
5889
5874
|
this.options = e;
|
|
5890
5875
|
const o = e;
|