@tiptap/core 3.0.0-beta.3 → 3.0.0-beta.5
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 -4
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -4
- package/dist/index.js.map +1 -1
- package/package.json +3 -3
- package/src/Editor.ts +3 -3
package/dist/index.cjs
CHANGED
|
@@ -4548,7 +4548,8 @@ var Editor = class extends EventEmitter {
|
|
|
4548
4548
|
// Stub some commonly accessed properties to prevent errors
|
|
4549
4549
|
composing: false,
|
|
4550
4550
|
dragging: null,
|
|
4551
|
-
editable: true
|
|
4551
|
+
editable: true,
|
|
4552
|
+
isDestroyed: false
|
|
4552
4553
|
},
|
|
4553
4554
|
{
|
|
4554
4555
|
get: (obj, key) => {
|
|
@@ -4601,7 +4602,7 @@ var Editor = class extends EventEmitter {
|
|
|
4601
4602
|
let plugins = prevPlugins;
|
|
4602
4603
|
[].concat(nameOrPluginKeyToRemove).forEach((nameOrPluginKey) => {
|
|
4603
4604
|
const name = typeof nameOrPluginKey === "string" ? `${nameOrPluginKey}$` : nameOrPluginKey.key;
|
|
4604
|
-
plugins =
|
|
4605
|
+
plugins = plugins.filter((plugin) => !plugin.key.startsWith(name));
|
|
4605
4606
|
});
|
|
4606
4607
|
if (prevPlugins.length === plugins.length) {
|
|
4607
4608
|
return void 0;
|
|
@@ -4862,8 +4863,8 @@ var Editor = class extends EventEmitter {
|
|
|
4862
4863
|
* Check if the editor is already destroyed.
|
|
4863
4864
|
*/
|
|
4864
4865
|
get isDestroyed() {
|
|
4865
|
-
var _a;
|
|
4866
|
-
return
|
|
4866
|
+
var _a, _b;
|
|
4867
|
+
return (_b = (_a = this.editorView) == null ? void 0 : _a.isDestroyed) != null ? _b : true;
|
|
4867
4868
|
}
|
|
4868
4869
|
$node(selector, attributes) {
|
|
4869
4870
|
var _a;
|