@tiptap/core 3.0.0-beta.3 → 3.0.0-beta.4

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.js CHANGED
@@ -4434,7 +4434,8 @@ var Editor = class extends EventEmitter {
4434
4434
  // Stub some commonly accessed properties to prevent errors
4435
4435
  composing: false,
4436
4436
  dragging: null,
4437
- editable: true
4437
+ editable: true,
4438
+ isDestroyed: false
4438
4439
  },
4439
4440
  {
4440
4441
  get: (obj, key) => {
@@ -4487,7 +4488,7 @@ var Editor = class extends EventEmitter {
4487
4488
  let plugins = prevPlugins;
4488
4489
  [].concat(nameOrPluginKeyToRemove).forEach((nameOrPluginKey) => {
4489
4490
  const name = typeof nameOrPluginKey === "string" ? `${nameOrPluginKey}$` : nameOrPluginKey.key;
4490
- plugins = prevPlugins.filter((plugin) => !plugin.key.startsWith(name));
4491
+ plugins = plugins.filter((plugin) => !plugin.key.startsWith(name));
4491
4492
  });
4492
4493
  if (prevPlugins.length === plugins.length) {
4493
4494
  return void 0;
@@ -4748,8 +4749,8 @@ var Editor = class extends EventEmitter {
4748
4749
  * Check if the editor is already destroyed.
4749
4750
  */
4750
4751
  get isDestroyed() {
4751
- var _a;
4752
- return !((_a = this.view) == null ? void 0 : _a.docView);
4752
+ var _a, _b;
4753
+ return (_b = (_a = this.editorView) == null ? void 0 : _a.isDestroyed) != null ? _b : true;
4753
4754
  }
4754
4755
  $node(selector, attributes) {
4755
4756
  var _a;