@tiptap/core 3.4.4 → 3.4.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 CHANGED
@@ -2262,7 +2262,7 @@ var ExtensionManager = class {
2262
2262
  get plugins() {
2263
2263
  const { editor } = this;
2264
2264
  const extensions = sortExtensions([...this.extensions].reverse());
2265
- const allPlugins = extensions.map((extension) => {
2265
+ const allPlugins = extensions.flatMap((extension) => {
2266
2266
  const context = {
2267
2267
  name: extension.name,
2268
2268
  options: extension.options,
@@ -2320,7 +2320,7 @@ var ExtensionManager = class {
2320
2320
  plugins.push(...proseMirrorPlugins);
2321
2321
  }
2322
2322
  return plugins;
2323
- }).flat();
2323
+ });
2324
2324
  return allPlugins;
2325
2325
  }
2326
2326
  /**
@@ -4486,6 +4486,9 @@ var Editor = class extends EventEmitter {
4486
4486
  }
4487
4487
  this.createView(el);
4488
4488
  this.emit("mount", { editor: this });
4489
+ if (this.css && !document.head.contains(this.css)) {
4490
+ document.head.appendChild(this.css);
4491
+ }
4489
4492
  window.setTimeout(() => {
4490
4493
  if (this.isDestroyed) {
4491
4494
  return;