@editora/core 1.0.19 → 1.0.20

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.
Files changed (26) hide show
  1. package/dist/{A11yCheckerPlugin.native-DIKuCeFw.mjs → A11yCheckerPlugin.native-qW_njhLY.mjs} +2 -2
  2. package/dist/{AnchorPlugin.native-DXZdK3zr.mjs → AnchorPlugin.native-Drmxhy98.mjs} +37 -37
  3. package/dist/{BlockquotePlugin.native-57_Xcjl1.mjs → BlockquotePlugin.native-D8jjGd0c.mjs} +19 -19
  4. package/dist/{CapitalizationPlugin.native-C-HRbXGh.mjs → CapitalizationPlugin.native-Mh-kUy-x.mjs} +17 -17
  5. package/dist/{ChecklistPlugin.native-NVrBUkaL.mjs → ChecklistPlugin.native-DLedNLsb.mjs} +31 -31
  6. package/dist/{CollaborationPlugin.native-oSybCGPW.mjs → CollaborationPlugin.native-Bl3R9CRI.mjs} +1406 -1295
  7. package/dist/{CommentsPlugin.native-CLip9wAO.mjs → CommentsPlugin.native-DncTHiEe.mjs} +2 -2
  8. package/dist/{DirectionPlugin.native-Bl-QLFzO.mjs → DirectionPlugin.native-B-Zj-EAt.mjs} +33 -33
  9. package/dist/{FontFamilyPlugin.native-M3cNQ0KA.mjs → FontFamilyPlugin.native-DLq9x046.mjs} +32 -32
  10. package/dist/{PreviewPlugin.native-Dyht8mGi.mjs → PreviewPlugin.native-Dv5OsffK.mjs} +4 -4
  11. package/dist/{SpellCheckPlugin.native-Bef2oTLB.mjs → SpellCheckPlugin.native-BGm2qPfn.mjs} +20 -20
  12. package/dist/{TemplatePlugin.native-BDV2eik2.mjs → TemplatePlugin.native-Dwk8TgxI.mjs} +32 -32
  13. package/dist/editora.min.js +2 -2
  14. package/dist/editora.umd.js +4 -4
  15. package/dist/{index-DeUjxpKd.mjs → index-BxlbmLsp.mjs} +135 -132
  16. package/dist/{index-CclXYzUB.js → index-Cdy6TOCy.js} +2 -2
  17. package/dist/index.cjs.js +1 -1
  18. package/dist/index.esm.js +2 -2
  19. package/dist/plugin-loader.js +11 -11
  20. package/dist/webcomponent-core.js +152 -149
  21. package/dist/webcomponent-core.min.js +16 -16
  22. package/dist/webcomponent.cjs.js +1 -1
  23. package/dist/webcomponent.esm.js +1 -1
  24. package/dist/webcomponent.js +32 -29
  25. package/dist/webcomponent.min.js +210 -210
  26. package/package.json +1 -1
@@ -1,2 +1,2 @@
1
- "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-CclXYzUB.js");exports.RichTextEditorElement=e.RichTextEditorElement;exports.initWebComponent=e.initWebComponent;
1
+ "use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./index-Cdy6TOCy.js");exports.RichTextEditorElement=e.RichTextEditorElement;exports.initWebComponent=e.initWebComponent;
2
2
  //# sourceMappingURL=webcomponent.cjs.js.map
@@ -1,4 +1,4 @@
1
- import { R as t, o as i } from "./index-DeUjxpKd.mjs";
1
+ import { R as t, o as i } from "./index-BxlbmLsp.mjs";
2
2
  export {
3
3
  t as RichTextEditorElement,
4
4
  i as initWebComponent
@@ -3047,14 +3047,14 @@ qt.EDITOR_DEFAULTS = {
3047
3047
  let Ce = qt;
3048
3048
  const ci = '.editora-editor{display:flex;flex-direction:column;border:1px solid #ddd;border-radius:4px;background:#fff;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;font-size:14px;overflow:hidden}.editora-editor *{box-sizing:border-box}.editora-theme-light{background:#fff;color:#333}.editora-theme-dark{--editora-dark-toolbar-bg-start: #353d48;--editora-dark-toolbar-bg-end: #2d3540;--editora-dark-button-bg-start: #46505f;--editora-dark-button-bg-end: #3b4553;--editora-dark-button-hover-start: #525d6d;--editora-dark-button-hover-end: #465262;--editora-dark-button-active-start: #5eaaf6;--editora-dark-button-active-end: #4a95de;--editora-dark-border: #475263;--editora-dark-border-strong: #566275;--editora-dark-text: #e1e9f5;--editora-dark-text-strong: #f3f7ff;--editora-dark-text-muted: #aeb9cc;--editora-dark-surface: #1d242d;--editora-dark-content: #1f2732;background:linear-gradient(180deg,#1b2330,#1c2430);color:var(--editora-dark-text);border-color:var(--editora-dark-border)}.editora-toolbar{display:flex;align-items:center;gap:4px;padding:8px;background:#f5f5f5;border-bottom:1px solid #ddd;flex-wrap:wrap}.editora-theme-dark .editora-toolbar{background:linear-gradient(180deg,var(--editora-dark-toolbar-bg-start) 0%,var(--editora-dark-toolbar-bg-end) 100%);border-bottom-color:var(--editora-dark-border);box-shadow:inset 0 1px #ffffff0d}.editora-toolbar-sticky{position:sticky;top:0;z-index:100;position:-webkit-sticky}.editora-toolbar-group{display:flex;align-items:center;gap:2px}.editora-toolbar-button{padding:6px 12px;border:1px solid #ccc;background:#fff;cursor:pointer;border-radius:3px;font-weight:600;font-size:14px;height:30px;display:flex;align-items:center;white-space:nowrap}.editora-toolbar-group-button{display:flex;align-items:center}.editora-toolbar-input.font-size{width:40px;padding:.25rem;text-align:center;font-size:14px;background:#fff;border:1px solid var(--rte-color-border-light);border-radius:var(--rte-radius-sm)}.editora-toolbar-group-items{display:flex;align-items:center;border:1px solid #ccc;.editora-toolbar-button{border:none;border-radius:0;&:first-child{border-right:1px solid #ccc;border-top-left-radius:3px;border-bottom-left-radius:3px}&:last-child{border:0px solid #ccc;border-radius:0!important}&:hover{background:#e0e0e0;border-color:#ccc}}}.editora-theme-dark .editora-toolbar-button{background:linear-gradient(180deg,var(--editora-dark-button-bg-start) 0%,var(--editora-dark-button-bg-end) 100%);border-color:var(--editora-dark-border-strong);color:var(--editora-dark-text);box-shadow:inset 0 1px #ffffff14,0 1px 1px #00000059}.editora-theme-dark .editora-toolbar-group-items{border-color:var(--editora-dark-border-strong);background:linear-gradient(180deg,var(--editora-dark-button-bg-start) 0%,var(--editora-dark-button-bg-end) 100%)}.editora-theme-dark .editora-toolbar-group-items .editora-toolbar-button:first-child{border-right-color:#566275}.editora-theme-dark .editora-toolbar-group-items .editora-toolbar-button:last-child{border-left-color:#566275}.editora-theme-dark .editora-toolbar-input.font-size{background-color:#2e3642;color:var(--editora-dark-text-strong);border-color:var(--editora-dark-border-strong);caret-color:var(--editora-dark-text-strong)}.editora-theme-dark .editora-toolbar-input.font-size::placeholder{color:var(--editora-dark-text-strong);opacity:1}.editora-toolbar-button:hover{background:#e0e0e0;border-color:#ccc}.editora-theme-dark .editora-toolbar-button:hover{background:linear-gradient(180deg,var(--editora-dark-button-hover-start) 0%,var(--editora-dark-button-hover-end) 100%);border-color:#66748a;color:var(--editora-dark-text-strong)}.editora-toolbar-button:active,.editora-toolbar-button.active{background:#d0d0d0;border-color:#999}.editora-theme-dark .editora-toolbar-button:active,.editora-theme-dark .editora-toolbar-button.active{background:linear-gradient(180deg,var(--editora-dark-button-active-start) 0%,var(--editora-dark-button-active-end) 100%);border-color:#67adf4;color:#0f1b2a}.editora-theme-dark .editora-toolbar-button:disabled{background:#313946;border-color:#424d5e;color:#7f8ca1}.editora-theme-dark .editora-toolbar-button[data-command=insertTable],.editora-theme-dark .editora-toolbar-button[data-command=print],.editora-theme-dark .editora-toolbar-button[data-command=toggleSpellCheck],.editora-theme-dark .editora-toolbar-button[data-command=toggleA11yChecker],.editora-theme-dark .editora-toolbar-button[data-command=setDirectionLTR],.editora-theme-dark .editora-toolbar-button[data-command=setDirectionRTL]{color:#f1f6ff}.editora-toolbar-button:disabled{opacity:.5;cursor:not-allowed}.editora-toolbar-icon{display:inline-flex;align-items:center;justify-content:center;width:24px;height:24px;line-height:1}.editora-toolbar-button svg,.editora-toolbar-icon svg{width:20px;height:20px;display:block;color:currentColor}.editora-theme-dark .editora-toolbar-button svg:not([fill=none i]),.editora-theme-dark .editora-toolbar-icon svg:not([fill=none i]){fill:currentColor}.editora-theme-dark .editora-toolbar-icon,.editora-theme-dark .editora-toolbar-icon *{color:inherit}.editora-theme-dark :is(.editora-toolbar-button,.editora-toolbar-icon) svg :is([stroke="#000" i],[stroke="#000000" i],[stroke=black i],[stroke="#0f0f0f" i],[stroke="#111111" i],[style*="stroke:#000" i],[style*="stroke: #000" i],[style*="stroke:black" i],[style*="stroke: black" i],[style*="stroke:#0f0f0f" i],[style*="stroke: #0f0f0f" i]){stroke:currentColor!important}.editora-theme-dark :is(.editora-toolbar-button,.editora-toolbar-icon) svg :is([fill="#000" i],[fill="#000000" i],[fill=black i],[fill="#0f0f0f" i],[fill="#111111" i],[style*="fill:#000" i],[style*="fill: #000" i],[style*="fill:black" i],[style*="fill: black" i],[style*="fill:#0f0f0f" i],[style*="fill: #0f0f0f" i]){fill:currentColor!important}.editora-toolbar-separator{width:1px;height:24px;background:#ddd;margin:0 4px}.editora-theme-dark .editora-toolbar-separator{background:#4d596b}.editora-toolbar-items-container{display:flex;align-items:center;gap:4px;flex:1;min-width:0;overflow:hidden}.editora-toolbar-more-button{display:flex;align-items:center;justify-content:center;width:30px;height:30px;flex-shrink:0;padding:0;border:1px solid #ccc;background:#fff;cursor:pointer;border-radius:3px;font-size:16px}.editora-toolbar-more-button:hover{background:#e0e0e0}.editora-toolbar-more-button.active{background:#d0d0d0;border-color:#999}.editora-theme-dark .editora-toolbar-more-button{background:var(--editora-dark-content);border-color:var(--editora-dark-border);color:var(--editora-dark-text)}.editora-theme-dark .editora-toolbar-more-button:hover,.editora-theme-dark .editora-toolbar-more-button.active{background:#3a4554;border-color:#607088}.editora-toolbar-expanded-row{display:none;flex-wrap:wrap;align-items:center;gap:4px;width:100%;padding:8px;border-top:1px solid #ddd;background:#f5f5f5}.editora-toolbar-expanded-row.show{display:flex}.editora-theme-dark .editora-toolbar-expanded-row{border-top-color:var(--editora-dark-border);background:linear-gradient(180deg,var(--editora-dark-toolbar-bg-start) 0%,var(--editora-dark-toolbar-bg-end) 100%)}.editora-toolbar-dropdown{position:relative}.editora-toolbar-dropdown-menu{position:absolute;top:100%;left:0;min-width:150px;margin-top:4px;padding:4px 0;background:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 2px 8px #00000026;z-index:1000}.editora-theme-dark .editora-toolbar-dropdown-menu{background:#29323d;border-color:#4d596b;box-shadow:0 8px 20px #00000073}.editora-toolbar-dropdown-item{display:block;width:100%;padding:8px 12px;border:none;background:transparent;color:#333;text-align:left;cursor:pointer;font-size:13px;transition:background .15s ease}.editora-theme-dark .editora-toolbar-dropdown-item{color:#d7deea}.editora-toolbar-dropdown-item:hover{background:#f5f5f5}.editora-theme-dark .editora-toolbar-dropdown-item:hover{background:#3a4554;color:#f0f6ff}.editora-content{flex:1;min-height:200px;padding:16px;outline:none;overflow-y:auto;line-height:1.6}.editora-theme-dark .editora-content{color:#ecf3ff;background:linear-gradient(180deg,var(--editora-dark-content) 0%,#1c232e 100%)}.editora-content:empty:before{content:attr(data-placeholder);color:#999;pointer-events:none}.editora-theme-dark .editora-content:empty:before{color:#8f9bb0}.editora-content h1{font-size:2em;margin:.67em 0;font-weight:600}.editora-content h2{font-size:1.5em;margin:.75em 0;font-weight:600}.editora-content h3{font-size:1.17em;margin:.83em 0;font-weight:600}.editora-content p{margin:1em 0}.editora-theme-dark .editora-content,.editora-theme-dark .editora-content :is(p,span,div,li,ul,ol,td,th,h1,h2,h3,h4,h5,h6,strong,em,u,s,small,sub,sup,blockquote,code,pre,a){color:#ecf3ff}.editora-content ul,.editora-content ol{margin:1em 0;padding-left:2em}.editora-content a{color:#06c;text-decoration:underline}.editora-theme-dark .editora-content a{color:#ecf3ff}.editora-content code{padding:2px 4px;background:#f5f5f5;border-radius:3px;font-family:Monaco,Menlo,Consolas,monospace;font-size:.9em}.editora-theme-dark .editora-content code{background:#1e1e1e}.editora-content pre{padding:12px;background:#f5f5f5;border-radius:4px;overflow-x:auto;margin:1em 0}.editora-theme-dark .editora-content pre{background:#1e1e1e}.editora-theme-dark .rte-code-block{background:linear-gradient(180deg,#212a36,#1b2430)!important;border-color:#4f5b70!important;color:#e7effc!important}.editora-theme-dark .rte-code-block code{color:#e7effc!important}.editora-theme-dark .rte-code-block:before{background:#111927!important;color:#dce8ff!important}.editora-theme-dark .rte-code-block .rte-code-copy{background:#2b3441!important;border-color:#5a667b!important;color:#dce8ff!important}.editora-content blockquote{margin:1em 0;padding-left:1em;border-left:4px solid #ddd;color:#666}.editora-theme-dark .editora-content blockquote{border-left-color:#3c3c3c;color:#ecf3ff}.editora-floating-toolbar{position:absolute;padding:4px;background:#fff;border:1px solid #ddd;border-radius:4px;box-shadow:0 2px 8px #00000026;z-index:1000}.editora-theme-dark .editora-floating-toolbar{background:#29323d;border-color:#4d596b;box-shadow:0 8px 20px #00000073}.editora-statusbar-container{display:flex;flex-direction:column}.editora-statusbar-left{display:flex;align-items:center;gap:8px}.editora-statusbar-right{display:flex;align-items:center;gap:8px;margin-left:auto}.editora-statusbar{display:flex;align-items:center;gap:12px;padding:6px 12px;background:#f5f5f5;border-top:1px solid #ddd;font-size:12px;color:#666}.editora-theme-dark .editora-statusbar{background:linear-gradient(180deg,#2c3440,#252d37);border-top-color:#3f4a5b;color:#d7deea}.editora-statusbar-item{white-space:nowrap}.editora-statusbar-separator{color:#ddd}.editora-theme-dark .editora-statusbar-separator{color:#566275}.editora-editor[readonly] .editora-content{background:#fafafa;cursor:not-allowed}.editora-theme-dark.editora-editor[readonly] .editora-content{background:#1a1a1a}.editora-editor:focus-within{border-color:#06c;box-shadow:0 0 0 3px #0066cc1a}.editora-theme-dark.editora-editor:focus-within{border-color:#4db8ff;box-shadow:0 0 0 3px #4db8ff1a}.editora-editor[disabled]{opacity:.6;pointer-events:none}@media(max-width:768px){.editora-toolbar{padding:4px}.editora-toolbar-button{min-width:28px;min-height:28px;padding:4px 8px;font-size:12px}.editora-content{padding:12px}}.editora-content ::selection{background:#06c3}.editora-theme-dark .editora-content ::selection{background:#4db8ff33}.editora-content table{border-collapse:collapse;width:100%;margin:1em 0}.editora-content th,.editora-content td{border:1px solid #ddd;padding:8px 12px;text-align:left}.editora-theme-dark .editora-content th,.editora-theme-dark .editora-content td{border-color:#3c3c3c}.editora-content th{background:#f5f5f5;font-weight:600}.editora-theme-dark .editora-content th{background:#252526}.editora-content img{max-width:100%;height:auto;border-radius:4px;display:block}.editora-content video{max-width:100%;height:auto;border-radius:4px;display:block}.editora-editor.loading{opacity:.7;pointer-events:none}.editora-editor.loading:after{content:"";position:absolute;top:50%;left:50%;width:24px;height:24px;margin:-12px 0 0 -12px;border:3px solid #ddd;border-top-color:#06c;border-radius:50%;animation:editora-spin .8s linear infinite}@keyframes editora-spin{to{transform:rotate(360deg)}}.toolbar-container-wrapper{display:flex;align-items:center;background:#fff;border-bottom:1px solid #e0e0e0;padding:0;margin:0;width:100%;box-sizing:border-box;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,sans-serif;font-size:14px;line-height:1.5;position:relative}.toolbar-container-wrapper[data-toolbar-sticky=true]{position:sticky;top:0;z-index:999;box-shadow:0 2px 4px #0000001a}.toolbar-container-wrapper[data-toolbar-floating=true]{position:fixed;top:0;left:0;right:0;z-index:1000;box-shadow:0 4px 12px #00000026}.toolbar-container-wrapper[data-toolbar-position=bottom]{border-bottom:none;border-top:1px solid #e0e0e0}.toolbar-container-wrapper .toolbar-wrapper{display:flex;width:100%;padding:8px;gap:4px;flex-wrap:wrap;align-items:center}.toolbar-container-wrapper .toolbar{display:flex;width:100%;gap:4px;flex-wrap:wrap;align-items:center}.toolbar-container-wrapper .toolbar-container{display:flex;gap:4px;flex-wrap:wrap;align-items:center;flex:1;position:relative}.toolbar-container-wrapper .toolbar-item{display:flex;align-items:center;gap:2px}.toolbar-container-wrapper .toolbar-button{padding:6px 10px;border:1px solid #d1d5db;background:#fff;border-radius:4px;cursor:pointer;font-size:13px;display:flex;align-items:center;justify-content:center;gap:4px;transition:all .15s ease;min-height:32px;white-space:nowrap}.toolbar-container-wrapper .toolbar-button:hover{background-color:#f3f4f6;border-color:#9ca3af}.toolbar-container-wrapper .toolbar-button:active,.toolbar-container-wrapper .toolbar-button[data-active=true]{background-color:#06c;color:#fff;border-color:#0052a3;box-shadow:inset 0 1px 3px #0000001a}.toolbar-container-wrapper .toolbar-button:disabled{opacity:.5;cursor:not-allowed;background-color:#f9fafb}.toolbar-container-wrapper .toolbar-more-button{padding:6px 8px;font-size:16px;font-weight:500;line-height:1}.toolbar-container-wrapper .toolbar-separator{width:1px;height:24px;background-color:#d1d5db;margin:0 4px}.toolbar-container-wrapper .toolbar-icon{display:inline-flex;align-items:center;justify-content:center;width:18px;height:18px;flex-shrink:0}.toolbar-container-wrapper .toolbar-icon svg{width:100%;height:100%}.toolbar-container-wrapper .toolbar-dropdown{position:relative;display:flex;align-items:center}.toolbar-container-wrapper .toolbar-dropdown-arrow{font-size:10px;margin-left:2px;line-height:1}.toolbar-container-wrapper .toolbar-dropdown-menu{position:absolute;top:100%;left:0;background:#fff;border:1px solid #d1d5db;border-radius:6px;box-shadow:0 4px 12px #00000026;z-index:1000;min-width:160px;padding:4px 0;margin-top:4px;display:none}.toolbar-container-wrapper .toolbar-dropdown-menu.show{display:block}.toolbar-container-wrapper .toolbar-dropdown-item{display:block;width:100%;padding:8px 12px;border:none;background:transparent;text-align:left;cursor:pointer;font-size:13px;color:#1f2937;transition:background-color .15s ease;font-family:inherit}.toolbar-container-wrapper .toolbar-dropdown-item:hover{background-color:#f3f4f6}.toolbar-container-wrapper .toolbar-dropdown-item:active{background-color:#e5e7eb}.toolbar-container-wrapper .toolbar-input{padding:6px 8px;border:1px solid #d1d5db;border-radius:4px;font-size:13px;font-family:inherit;background-color:#fff;color:#1f2937;transition:all .15s ease}.toolbar-container-wrapper .toolbar-input:focus{outline:none;border-color:#06c;box-shadow:0 0 0 3px #0066cc1a;background-color:#fff}.toolbar-container-wrapper .toolbar-input::placeholder{color:#9ca3af}.toolbar-overflow-menu{animation:slideDown .2s ease-out}@keyframes slideDown{0%{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:translateY(0)}}.toolbar-overflow-item{transition:background-color .15s ease}.floating-toolbar{user-select:none;-webkit-user-select:none;font-family:system-ui,-apple-system,sans-serif;font-size:14px;animation:fadeInUp .15s ease-out}@keyframes fadeInUp{0%{opacity:0;transform:translate(-50%) translateY(10px)}to{opacity:1;transform:translate(-50%) translateY(0)}}.floating-toolbar-btn{display:flex;align-items:center;justify-content:center;width:32px;height:32px;border:none;background:transparent;border-radius:4px;color:#495057;cursor:pointer;font-size:14px;font-weight:500;transition:all .15s ease;outline:none}.floating-toolbar-btn:hover{background:#f8f9fa;color:#212529}.floating-toolbar-btn:active{background:#e9ecef;transform:scale(.95)}.floating-toolbar-btn.floating-toolbar-toggle{color:#dc3545;font-weight:700}.floating-toolbar-btn.floating-toolbar-toggle:hover{background:#f8d7da;color:#721c24}.floating-toolbar-separator{width:1px;height:20px;background:#e1e5e9;margin:0 2px}@media(max-width:768px){.toolbar-container-wrapper .toolbar-button{padding:5px 8px;font-size:12px;min-height:28px}.toolbar-container-wrapper .toolbar-icon{width:16px;height:16px}.toolbar-container-wrapper .toolbar-dropdown-menu{min-width:140px}.toolbar-container-wrapper .toolbar-dropdown-item{padding:6px 10px;font-size:12px}.floating-toolbar{padding:4px;gap:2px}.floating-toolbar-btn{width:28px;height:28px;font-size:12px}}@media(max-width:480px){.toolbar-container-wrapper{padding:4px}.toolbar-container-wrapper .toolbar-wrapper{padding:4px;gap:2px}.toolbar-container-wrapper .toolbar-button{padding:4px 6px;font-size:11px;min-height:24px}.toolbar-container-wrapper .toolbar-icon{width:14px;height:14px}}.floating-toolbar{pointer-events:auto}.floating-toolbar{max-width:calc(100vw - 20px);overflow-x:auto}@media(prefers-color-scheme:dark){.floating-toolbar{background:#2d3748;border-color:#4a5568;color:#e2e8f0}.floating-toolbar-btn:hover{background:#4a5568;color:#f7fafc}.floating-toolbar-btn:active{background:#718096}.floating-toolbar-separator{background:#4a5568}}';
3049
3049
  let Gt;
3050
- const di = "__editoraCommandEditorRoot", ui = "__editoraLastCommandButton", ko = "editora-editor, [data-editora-editor], .rte-editor, .editora-editor", To = ".rte-content, .editora-content", xe = /* @__PURE__ */ new Set();
3050
+ const di = "__editoraCommandEditorRoot", ui = "__editoraLastCommandButton", ko = "editora-editor, [data-editora-editor], .rte-editor, .editora-editor", To = ".rte-content, .editora-content", pi = "Rich text editor", xe = /* @__PURE__ */ new Set();
3051
3051
  let Q = null, Co = !1, Ee = null, we = null;
3052
3052
  function xo(o) {
3053
3053
  if (!(o instanceof HTMLElement)) return !1;
3054
3054
  const t = o;
3055
3055
  return typeof t.execCommand == "function" && (t.tagName.toLowerCase() === "editora-editor" || t.classList.contains("editora-editor") || t.hasAttribute("data-editora-editor"));
3056
3056
  }
3057
- function pi(o) {
3057
+ function fi(o) {
3058
3058
  return o ? o.nodeType === Node.ELEMENT_NODE ? o : o.parentElement : null;
3059
3059
  }
3060
3060
  function St(o) {
@@ -3064,7 +3064,7 @@ function St(o) {
3064
3064
  const t = o.matches(ko) ? o : o.closest(ko);
3065
3065
  return !t || !xo(t) ? null : t;
3066
3066
  }
3067
- function fi() {
3067
+ function hi() {
3068
3068
  var r;
3069
3069
  if (typeof window == "undefined") return null;
3070
3070
  const o = window[di];
@@ -3089,7 +3089,7 @@ function fi() {
3089
3089
  }
3090
3090
  const n = (r = window.getSelection) == null ? void 0 : r.call(window);
3091
3091
  if (n && n.rangeCount > 0) {
3092
- const a = St(pi(n.getRangeAt(0).startContainer));
3092
+ const a = St(fi(n.getRangeAt(0).startContainer));
3093
3093
  if (a) return a;
3094
3094
  }
3095
3095
  if (Q && Q.isConnected)
@@ -3098,23 +3098,23 @@ function fi() {
3098
3098
  if (a.isConnected) return a;
3099
3099
  return null;
3100
3100
  }
3101
- function hi() {
3101
+ function mi() {
3102
3102
  if (typeof window == "undefined" || Co) return;
3103
3103
  Ee = typeof window.executeEditorCommand == "function" ? window.executeEditorCommand.bind(window) : null, we = typeof window.execEditorCommand == "function" ? window.execEditorCommand.bind(window) : null;
3104
3104
  const o = (t, ...e) => {
3105
- const n = fi();
3105
+ const n = hi();
3106
3106
  return n ? n.execCommand(t, ...e) : Ee ? Ee(t, ...e) : we ? we(t, ...e) : !1;
3107
3107
  };
3108
3108
  window.executeEditorCommand = o, window.execEditorCommand = o, Co = !0;
3109
3109
  }
3110
- function mi() {
3110
+ function gi() {
3111
3111
  const o = "editora-webcomponent-styles";
3112
3112
  if (!document.getElementById(o)) {
3113
3113
  const t = document.createElement("style");
3114
3114
  t.id = o, t.textContent = ci, document.head.appendChild(t);
3115
3115
  }
3116
3116
  }
3117
- function gi() {
3117
+ function bi() {
3118
3118
  if (!Gt) {
3119
3119
  const o = W.__globalPluginLoader;
3120
3120
  o ? Gt = o : Gt = new Ao();
@@ -3123,7 +3123,7 @@ function gi() {
3123
3123
  }
3124
3124
  class W extends HTMLElement {
3125
3125
  constructor() {
3126
- if (super(), this.pluginLoader = gi(), this.config = {}, this.isInitialized = !1, this.keyboardShortcutManager = new En(), this.lastAutosavedContent = "", this.preservedContent = null, this.loadedPlugins = [], this.lastBeforeInputType = null, mi(), !this.hasAttribute("data-initial-content")) {
3126
+ if (super(), this.pluginLoader = bi(), this.config = {}, this.isInitialized = !1, this.keyboardShortcutManager = new En(), this.lastAutosavedContent = "", this.preservedContent = null, this.loadedPlugins = [], this.lastBeforeInputType = null, gi(), !this.hasAttribute("data-initial-content")) {
3127
3127
  const t = this.innerHTML.trim();
3128
3128
  t && this.setAttribute("data-initial-content", t);
3129
3129
  }
@@ -3143,6 +3143,7 @@ class W extends HTMLElement {
3143
3143
  "disabled",
3144
3144
  "theme",
3145
3145
  "placeholder",
3146
+ "aria-label",
3146
3147
  "autofocus",
3147
3148
  "autosave",
3148
3149
  "autosave-enabled",
@@ -3224,7 +3225,7 @@ class W extends HTMLElement {
3224
3225
  async initialize() {
3225
3226
  var r;
3226
3227
  if (this.querySelector(".editora-toolbar") || this.isInitialized) return;
3227
- this.setAttribute("data-editora-editor", "true"), xe.add(this), Q || (Q = this), hi(), this.config.height && (this.style.height = typeof this.config.height == "number" ? `${this.config.height}px` : this.config.height), this.config.width && (this.style.width = typeof this.config.width == "number" ? `${this.config.width}px` : this.config.width), this.classList.add("editora-editor"), this.config.theme && this.classList.add(`editora-theme-${this.config.theme}`);
3228
+ this.setAttribute("data-editora-editor", "true"), xe.add(this), Q || (Q = this), mi(), this.config.height && (this.style.height = typeof this.config.height == "number" ? `${this.config.height}px` : this.config.height), this.config.width && (this.style.width = typeof this.config.width == "number" ? `${this.config.width}px` : this.config.width), this.classList.add("editora-editor"), this.config.theme && this.classList.add(`editora-theme-${this.config.theme}`);
3228
3229
  const t = await this.loadPlugins();
3229
3230
  if (this.loadedPlugins = t, t.forEach((a) => {
3230
3231
  if (a.init && typeof a.init == "function")
@@ -3371,12 +3372,13 @@ class W extends HTMLElement {
3371
3372
  return t.bottom >= 0 && t.top <= window.innerHeight;
3372
3373
  }
3373
3374
  applyAccessibilitySettings() {
3375
+ var e;
3374
3376
  if (!this.contentElement) return;
3375
3377
  const t = this.getAccessibilityConfig();
3376
3378
  if (t.enableARIA) {
3377
3379
  this.contentElement.setAttribute("role", "textbox"), this.contentElement.setAttribute("aria-multiline", "true"), this.contentElement.setAttribute("aria-disabled", this.config.readonly ? "true" : "false");
3378
- const e = typeof this.config.placeholder == "string" ? this.config.placeholder.trim() : "";
3379
- e ? this.contentElement.setAttribute("aria-label", e) : this.contentElement.removeAttribute("aria-label");
3380
+ const n = (e = this.getAttribute("aria-label")) == null ? void 0 : e.trim(), r = typeof this.config.placeholder == "string" ? this.config.placeholder.trim() : "";
3381
+ this.contentElement.setAttribute("aria-label", n || r || pi);
3380
3382
  } else
3381
3383
  this.contentElement.removeAttribute("role"), this.contentElement.removeAttribute("aria-multiline"), this.contentElement.removeAttribute("aria-disabled"), this.contentElement.removeAttribute("aria-label");
3382
3384
  this.contentElement.tabIndex = t.keyboardNavigation ? 0 : -1;
@@ -3785,6 +3787,7 @@ class W extends HTMLElement {
3785
3787
  case "placeholder":
3786
3788
  this.contentElement && (this.contentElement.setAttribute("data-placeholder", e), this.applyAccessibilitySettings());
3787
3789
  break;
3790
+ case "aria-label":
3788
3791
  case "accessibility":
3789
3792
  case "accessibility-enable-aria":
3790
3793
  case "accessibility-keyboard-navigation":
@@ -3907,7 +3910,7 @@ class W extends HTMLElement {
3907
3910
  }
3908
3911
  const Yt = new Ao();
3909
3912
  W.__globalPluginLoader = Yt;
3910
- const bi = {
3913
+ const yi = {
3911
3914
  // Core editing plugins (always loaded)
3912
3915
  bold: () => import("./BoldPlugin.native-CSh_LiIJ.mjs").then((o) => o.BoldPlugin()),
3913
3916
  italic: () => import("./ItalicPlugin.native-CmnlwFHB.mjs").then((o) => o.ItalicPlugin()),
@@ -3915,23 +3918,23 @@ const bi = {
3915
3918
  strikethrough: () => import("./StrikethroughPlugin.native-V0TL4F48.mjs").then((o) => o.StrikethroughPlugin()),
3916
3919
  clearFormatting: () => import("./ClearFormattingPlugin.native-Pp0O-SBf.mjs").then((o) => o.ClearFormattingPlugin()),
3917
3920
  heading: () => import("./HeadingPlugin.native-DZdvubrQ.mjs").then((o) => o.HeadingPlugin()),
3918
- blockquote: () => import("./BlockquotePlugin.native-57_Xcjl1.mjs").then((o) => o.BlockquotePlugin()),
3921
+ blockquote: () => import("./BlockquotePlugin.native-D8jjGd0c.mjs").then((o) => o.BlockquotePlugin()),
3919
3922
  code: () => import("./CodePlugin.native-BcVqm5MS.mjs").then((o) => o.CodePlugin()),
3920
3923
  codeSample: () => import("./CodeSamplePlugin.native-svbAFWh_.mjs").then((o) => o.CodeSamplePlugin()),
3921
3924
  list: () => import("./ListPlugin.native-Bt0LANbO.mjs").then((o) => o.ListPlugin()),
3922
- checklist: () => import("./ChecklistPlugin.native-NVrBUkaL.mjs").then((o) => o.ChecklistPlugin()),
3925
+ checklist: () => import("./ChecklistPlugin.native-DLedNLsb.mjs").then((o) => o.ChecklistPlugin()),
3923
3926
  textAlignment: () => import("./TextAlignmentPlugin.native-sM_1s00t.mjs").then((o) => o.TextAlignmentPlugin()),
3924
3927
  indent: () => import("./IndentPlugin.native-BHixp8sP.mjs").then((o) => o.IndentPlugin()),
3925
- direction: () => import("./DirectionPlugin.native-Bl-QLFzO.mjs").then((o) => o.DirectionPlugin()),
3928
+ direction: () => import("./DirectionPlugin.native-B-Zj-EAt.mjs").then((o) => o.DirectionPlugin()),
3926
3929
  textColor: () => import("./TextColorPlugin.native-KMZ2uzlq.mjs").then((o) => o.TextColorPlugin()),
3927
3930
  backgroundColor: () => import("./BackgroundColorPlugin.native-H3XyYD7_.mjs").then((o) => o.BackgroundColorPlugin()),
3928
3931
  fontSize: () => import("./FontSizePlugin.native-DsLrH8eq.mjs").then((o) => o.FontSizePlugin()),
3929
- fontFamily: () => import("./FontFamilyPlugin.native-M3cNQ0KA.mjs").then((o) => o.FontFamilyPlugin()),
3932
+ fontFamily: () => import("./FontFamilyPlugin.native-DLq9x046.mjs").then((o) => o.FontFamilyPlugin()),
3930
3933
  formatPainter: () => import("./FormatPainterPlugin.native-BhjzsiVq.mjs").then((o) => o.FormatPainterPlugin()),
3931
3934
  "format-painter": () => import("./FormatPainterPlugin.native-BhjzsiVq.mjs").then((o) => o.FormatPainterPlugin()),
3932
3935
  formatpainter: () => import("./FormatPainterPlugin.native-BhjzsiVq.mjs").then((o) => o.FormatPainterPlugin()),
3933
3936
  lineHeight: () => import("./LineHeightPlugin.native-CM7iXdQj.mjs").then((o) => o.LineHeightPlugin()),
3934
- capitalization: () => import("./CapitalizationPlugin.native-C-HRbXGh.mjs").then((o) => o.CapitalizationPlugin()),
3937
+ capitalization: () => import("./CapitalizationPlugin.native-Mh-kUy-x.mjs").then((o) => o.CapitalizationPlugin()),
3935
3938
  history: () => import("./HistoryPlugin.native-DPvhks6h.mjs").then((o) => o.HistoryPlugin()),
3936
3939
  // Advanced plugins (lazy loaded)
3937
3940
  link: () => import("./LinkPlugin.native-BsQXYsK6.mjs").then((o) => o.LinkPlugin()),
@@ -3971,33 +3974,33 @@ const bi = {
3971
3974
  blockslibrary: () => import("./BlocksLibraryPlugin.native-CownM6Rk.mjs").then((o) => o.BlocksLibraryPlugin()),
3972
3975
  mentions: () => import("./MentionPlugin.native-S_lwGZQO.mjs").then((o) => o.MentionPlugin()),
3973
3976
  mention: () => import("./MentionPlugin.native-S_lwGZQO.mjs").then((o) => o.MentionPlugin()),
3974
- anchor: () => import("./AnchorPlugin.native-DXZdK3zr.mjs").then((o) => o.AnchorPlugin()),
3977
+ anchor: () => import("./AnchorPlugin.native-Drmxhy98.mjs").then((o) => o.AnchorPlugin()),
3975
3978
  embedIframe: () => import("./EmbedIframePlugin.native-BfZ_HGlV.mjs").then((o) => o.EmbedIframePlugin()),
3976
3979
  math: () => import("./MathPlugin.native-Byo3WL0f.mjs").then((o) => o.MathPlugin()),
3977
3980
  image: () => import("./MediaManagerPlugin.native-BT1NZIJS.mjs").then((o) => o.MediaManagerPlugin()),
3978
3981
  mergeTag: () => import("./MergeTagPlugin.native-7-6F3S1Y.mjs").then((o) => o.MergeTagPlugin()),
3979
3982
  pageBreak: () => import("./PageBreakPlugin.native-DijGuHJZ.mjs").then((o) => o.PageBreakPlugin()),
3980
3983
  print: () => import("./PrintPlugin.native-7qt5v7L5.mjs").then((o) => o.PrintPlugin()),
3981
- preview: () => import("./PreviewPlugin.native-Dyht8mGi.mjs").then((o) => o.PreviewPlugin()),
3984
+ preview: () => import("./PreviewPlugin.native-Dv5OsffK.mjs").then((o) => o.PreviewPlugin()),
3982
3985
  specialCharacters: () => import("./SpecialCharactersPlugin.native-CdZoc1GB.mjs").then((o) => o.SpecialCharactersPlugin()),
3983
3986
  slashCommands: () => import("./SlashCommandsPlugin.native-BDIIwGNs.mjs").then((o) => o.SlashCommandsPlugin()),
3984
3987
  "slash-commands": () => import("./SlashCommandsPlugin.native-BDIIwGNs.mjs").then((o) => o.SlashCommandsPlugin()),
3985
- spellCheck: () => import("./SpellCheckPlugin.native-Bef2oTLB.mjs").then((o) => o.SpellCheckPlugin()),
3988
+ spellCheck: () => import("./SpellCheckPlugin.native-BGm2qPfn.mjs").then((o) => o.SpellCheckPlugin()),
3986
3989
  emojis: () => import("./EmojisPlugin.native-D92aaOKi.mjs").then((o) => o.EmojisPlugin()),
3987
- a11yChecker: () => import("./A11yCheckerPlugin.native-DIKuCeFw.mjs").then((o) => o.A11yCheckerPlugin()),
3988
- comments: () => import("./CommentsPlugin.native-CLip9wAO.mjs").then((o) => o.CommentsPlugin()),
3989
- collaboration: () => import("./CollaborationPlugin.native-oSybCGPW.mjs").then((o) => o.CollaborationPlugin()),
3990
+ a11yChecker: () => import("./A11yCheckerPlugin.native-qW_njhLY.mjs").then((o) => o.A11yCheckerPlugin()),
3991
+ comments: () => import("./CommentsPlugin.native-DncTHiEe.mjs").then((o) => o.CommentsPlugin()),
3992
+ collaboration: () => import("./CollaborationPlugin.native-Bl3R9CRI.mjs").then((o) => o.CollaborationPlugin()),
3990
3993
  "document-manager": () => import("./DocumentManagerPlugin.native-B8K-Oqom.mjs").then((o) => o.DocumentManagerPlugin()),
3991
3994
  fullscreen: () => import("./FullscreenPlugin.native-ChXyxeNw.mjs").then((o) => o.FullscreenPlugin()),
3992
- template: () => import("./TemplatePlugin.native-BDV2eik2.mjs").then((o) => o.TemplatePlugin()),
3995
+ template: () => import("./TemplatePlugin.native-Dwk8TgxI.mjs").then((o) => o.TemplatePlugin()),
3993
3996
  footnote: () => import("./FootnotePlugin.native-D730OGRm.mjs").then((o) => o.FootnotePlugin())
3994
3997
  };
3995
- async function yi() {
3996
- return Object.entries(bi).forEach(([o, t]) => {
3998
+ async function vi() {
3999
+ return Object.entries(yi).forEach(([o, t]) => {
3997
4000
  Yt.register(o, t);
3998
4001
  }), Yt;
3999
4002
  }
4000
- typeof window != "undefined" && yi().then((o) => {
4003
+ typeof window != "undefined" && vi().then((o) => {
4001
4004
  W.__globalPluginLoader = o, customElements.get("editora-editor") || customElements.define("editora-editor", W);
4002
4005
  const t = document.querySelectorAll("editora-editor:not([data-initial-content])"), e = [];
4003
4006
  t.forEach((a) => {
@@ -4020,6 +4023,6 @@ typeof window != "undefined" && yi().then((o) => {
4020
4023
  });
4021
4024
  export {
4022
4025
  W as RichTextEditorElement,
4023
- yi as initWebComponent
4026
+ vi as initWebComponent
4024
4027
  };
4025
4028
  //# sourceMappingURL=webcomponent.js.map