@editora/core 1.0.9 → 1.0.11
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/README.md +1 -1
- package/dist/{A11yCheckerPlugin.native-58d12bed.mjs → A11yCheckerPlugin.native-BRdGYMju.mjs} +12 -23
- package/dist/{AnchorPlugin.native-289a112a.mjs → AnchorPlugin.native-BcYGEtd9.mjs} +102 -112
- package/dist/{ApprovalWorkflowPlugin.native-449ce66c.mjs → ApprovalWorkflowPlugin.native-BZ6jO-Wj.mjs} +173 -209
- package/dist/{BackgroundColorPlugin.native-8aceb5cc.mjs → BackgroundColorPlugin.native-50iAT9xU.mjs} +9 -16
- package/dist/BlockquotePlugin.native-57_Xcjl1.mjs +212 -0
- package/dist/{BlocksLibraryPlugin.native-1cc51e63.mjs → BlocksLibraryPlugin.native-5sdsXsiE.mjs} +149 -205
- package/dist/{BoldPlugin.native-f9d7f8e4.mjs → BoldPlugin.native-CSh_LiIJ.mjs} +11 -7
- package/dist/CapitalizationPlugin.native-DLV4oPmB.mjs +159 -0
- package/dist/ChecklistPlugin.native-BS-kMz9O.mjs +371 -0
- package/dist/{CitationsPlugin.native-169fb1e8.mjs → CitationsPlugin.native-DQgoCd1B.mjs} +196 -261
- package/dist/ClearFormattingPlugin.native-DIS6AN2t.mjs +172 -0
- package/dist/CodePlugin.native-veDC_kx5.mjs +4600 -0
- package/dist/{CodeSamplePlugin.native-6cc0148e.mjs → CodeSamplePlugin.native-CgGoH-X4.mjs} +10 -19
- package/dist/{CommentsPlugin.native-03659874.mjs → CommentsPlugin.native-DPSqTkiv.mjs} +28 -55
- package/dist/{ConditionalContentPlugin.native-4983143a.mjs → ConditionalContentPlugin.native-CfhY46rU.mjs} +51 -108
- package/dist/{ContentRulesPlugin.native-63ed405b.mjs → ContentRulesPlugin.native-vPx5nC73.mjs} +153 -200
- package/dist/{DataBindingPlugin.native-427e9d75.mjs → DataBindingPlugin.native-BoXwghTz.mjs} +88 -124
- package/dist/DirectionPlugin.native-Bl-QLFzO.mjs +153 -0
- package/dist/{DocSchemaPlugin.native-8e41eda0.mjs → DocSchemaPlugin.native-DUSVRHqT.mjs} +112 -166
- package/dist/{DocumentManagerPlugin.native-e69895ad.mjs → DocumentManagerPlugin.native-C2cs_1w4.mjs} +4 -4
- package/dist/EmbedIframePlugin.native-BF_-LjTq.mjs +740 -0
- package/dist/{EmojisPlugin.native-65c5ac47.mjs → EmojisPlugin.native-CitxxlWX.mjs} +6 -11
- package/dist/{FontFamilyPlugin.native-f9bc255a.mjs → FontFamilyPlugin.native-j8hMTbg4.mjs} +4 -7
- package/dist/{FontSizePlugin.native-f5647872.mjs → FontSizePlugin.native-B_jCh7dY.mjs} +10 -19
- package/dist/{FootnotePlugin.native-494657b3.mjs → FootnotePlugin.native-D730OGRm.mjs} +39 -77
- package/dist/{FullscreenPlugin.native-87ce92e9.mjs → FullscreenPlugin.native-ChXyxeNw.mjs} +1 -1
- package/dist/HeadingPlugin.native-DZdvubrQ.mjs +249 -0
- package/dist/{HistoryPlugin.native-92ed4be4.mjs → HistoryPlugin.native-D2wl32jV.mjs} +107 -143
- package/dist/{IndentPlugin.native-e4ee902b.mjs → IndentPlugin.native-BHixp8sP.mjs} +12 -23
- package/dist/{ItalicPlugin.native-7c95cfbc.mjs → ItalicPlugin.native-CmnlwFHB.mjs} +15 -11
- package/dist/{LineHeightPlugin.native-5668f78c.mjs → LineHeightPlugin.native-CM7iXdQj.mjs} +10 -19
- package/dist/{LinkPlugin.native-6df29111.mjs → LinkPlugin.native-DYCIcdTm.mjs} +5 -9
- package/dist/{ListPlugin.native-fe2e115a.mjs → ListPlugin.native-V7EZC1lM.mjs} +5 -9
- package/dist/MathPlugin.native-NwWPHVmj.mjs +369 -0
- package/dist/{MediaManagerPlugin.native-3cf48a00.mjs → MediaManagerPlugin.native-eOsTJFpw.mjs} +11 -21
- package/dist/{MentionPlugin.native-3b1e8c05.mjs → MentionPlugin.native-BMDlOqur.mjs} +45 -89
- package/dist/MergeTagPlugin.native-BzRVoD9-.mjs +580 -0
- package/dist/{PIIRedactionPlugin.native-7ab10b9f.mjs → PIIRedactionPlugin.native-g7j4jOmm.mjs} +210 -260
- package/dist/{PageBreakPlugin.native-1794c5fb.mjs → PageBreakPlugin.native-DijGuHJZ.mjs} +16 -31
- package/dist/{PreviewPlugin.native-f7b67cc0.mjs → PreviewPlugin.native-WuIwOAOR.mjs} +6 -11
- package/dist/{PrintPlugin.native-f6a168c2.mjs → PrintPlugin.native-7qt5v7L5.mjs} +3 -5
- package/dist/{SlashCommandsPlugin.native-8d45e511.mjs → SlashCommandsPlugin.native-BiN6ODw5.mjs} +36 -71
- package/dist/{SmartPastePlugin.native-a6c5efec.mjs → SmartPastePlugin.native-CZAEHkyt.mjs} +173 -219
- package/dist/{SpecialCharactersPlugin.native-7f06d4ba.mjs → SpecialCharactersPlugin.native-DaG4b19I.mjs} +101 -85
- package/dist/{SpellCheckPlugin.native-04e20834.mjs → SpellCheckPlugin.native-BZB9AewP.mjs} +21 -41
- package/dist/{StrikethroughPlugin.native-905e9501.mjs → StrikethroughPlugin.native-V0TL4F48.mjs} +12 -30
- package/dist/{TablePlugin.native-7d5458c1.mjs → TablePlugin.native-DrHX-efe.mjs} +30 -58
- package/dist/TemplatePlugin.native-DLjFUaPW.mjs +1150 -0
- package/dist/{TextAlignmentPlugin.native-9357b3ed.mjs → TextAlignmentPlugin.native-sM_1s00t.mjs} +6 -11
- package/dist/{TextColorPlugin.native-d53ed459.mjs → TextColorPlugin.native-Bwl_bSmc.mjs} +14 -26
- package/dist/{TrackChangesPlugin.native-e96da509.mjs → TrackChangesPlugin.native-Bghu2q4a.mjs} +58 -115
- package/dist/{TranslationWorkflowPlugin.native-4e711b1e.mjs → TranslationWorkflowPlugin.native-DdF16tgT.mjs} +191 -257
- package/dist/{UnderlinePlugin.native-8080c998.mjs → UnderlinePlugin.native-DZzg23rv.mjs} +8 -4
- package/dist/{VersionDiffPlugin.native-5bbeff85.mjs → VersionDiffPlugin.native-Bvxgy--t.mjs} +26 -51
- package/dist/_commonjsHelpers-DOllISpa.mjs +32 -0
- package/dist/{anchoredPopover-5cca53ba.mjs → anchoredPopover-Bxds0VoB.mjs} +1 -1
- package/dist/core.css +1 -0
- package/dist/documentManager-vQ1VkbUY.mjs +8418 -0
- package/dist/{editorContainerHelpers-69585c07.mjs → editorContainerHelpers-C7kdWnS0.mjs} +2 -3
- package/dist/editora.min.js +13 -14
- package/dist/editora.umd.js +13 -14
- package/dist/{html2canvas.esm-c51cb3b9.mjs → html2canvas.esm-AYkPY5LS.mjs} +894 -978
- package/dist/index-BslAFzmv.mjs +16544 -0
- package/dist/index-CPMGUZfB.js +10 -0
- package/dist/{index-7da30697.mjs → index-DBoj6QfW.mjs} +127 -164
- package/dist/index.cjs.js +1 -1
- package/dist/index.es-BYD2KEo6.mjs +6666 -0
- package/dist/index.esm.js +7 -12
- package/dist/inlineFormatting-DJ0-NZtx.mjs +97 -0
- package/dist/{jspdf.es.min-780c82db.mjs → jspdf.es.min-BJGtOnRT.mjs} +3784 -4808
- package/dist/plugin-loader.js +67 -67
- package/dist/{purify.es-3bdbcfc5.mjs → purify.es-CKpwg8Tk.mjs} +10 -20
- package/dist/webcomponent-core.js +131 -168
- package/dist/webcomponent-core.min.css +1 -1
- package/dist/webcomponent-core.min.js +147 -65
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +1 -1
- package/dist/webcomponent.js +191 -228
- package/dist/webcomponent.min.css +1 -1
- package/dist/webcomponent.min.js +1248 -1346
- package/package.json +1 -1
- package/dist/BlockquotePlugin.native-3541c714.mjs +0 -49
- package/dist/CapitalizationPlugin.native-42c135dc.mjs +0 -80
- package/dist/ChecklistPlugin.native-3b397ee9.mjs +0 -330
- package/dist/ClearFormattingPlugin.native-77baa514.mjs +0 -145
- package/dist/CodePlugin.native-989cf0aa.mjs +0 -2740
- package/dist/DirectionPlugin.native-4e742f42.mjs +0 -139
- package/dist/EmbedIframePlugin.native-55209c87.mjs +0 -568
- package/dist/HeadingPlugin.native-e38c4a16.mjs +0 -64
- package/dist/MathPlugin.native-735bbac2.mjs +0 -296
- package/dist/MergeTagPlugin.native-31cf7d48.mjs +0 -584
- package/dist/TemplatePlugin.native-580f0f63.mjs +0 -617
- package/dist/_commonjsHelpers-69d58be2.mjs +0 -31
- package/dist/documentManager-8327fb6e.mjs +0 -9166
- package/dist/index-072ef022.js +0 -11
- package/dist/index-49d31221.mjs +0 -16860
- package/dist/index.es-b47a189f.mjs +0 -5782
- package/dist/style.css +0 -1
package/dist/webcomponent.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
class
|
|
1
|
+
class P {
|
|
2
2
|
constructor() {
|
|
3
3
|
this.loadedPlugins = /* @__PURE__ */ new Map(), this.pluginRegistry = /* @__PURE__ */ new Map();
|
|
4
4
|
}
|
|
@@ -84,7 +84,7 @@ class v {
|
|
|
84
84
|
return new v(t, e || this.selection, this.schema);
|
|
85
85
|
}
|
|
86
86
|
}
|
|
87
|
-
class
|
|
87
|
+
class B {
|
|
88
88
|
constructor(t, e) {
|
|
89
89
|
this.nodes = new Map(Object.entries(t)), this.marks = new Map(Object.entries(e));
|
|
90
90
|
}
|
|
@@ -95,7 +95,7 @@ class D {
|
|
|
95
95
|
return { type: "text", text: t, marks: e };
|
|
96
96
|
}
|
|
97
97
|
}
|
|
98
|
-
class
|
|
98
|
+
class N {
|
|
99
99
|
constructor() {
|
|
100
100
|
this.plugins = [], this.pluginConfigs = /* @__PURE__ */ new Map();
|
|
101
101
|
}
|
|
@@ -132,7 +132,7 @@ class B {
|
|
|
132
132
|
const t = {}, e = {};
|
|
133
133
|
return this.plugins.forEach((o) => {
|
|
134
134
|
o.nodes && Object.assign(t, o.nodes), o.marks && Object.assign(e, o.marks);
|
|
135
|
-
}), new
|
|
135
|
+
}), new B(t, e);
|
|
136
136
|
}
|
|
137
137
|
getCommands() {
|
|
138
138
|
const t = {};
|
|
@@ -186,7 +186,7 @@ class B {
|
|
|
186
186
|
await Promise.all(t), this.plugins = [], this.pluginConfigs.clear();
|
|
187
187
|
}
|
|
188
188
|
}
|
|
189
|
-
class
|
|
189
|
+
class O {
|
|
190
190
|
constructor(t = {}) {
|
|
191
191
|
this.commands = /* @__PURE__ */ new Map(), Object.entries(t).forEach(([e, o]) => {
|
|
192
192
|
this.register(e, o);
|
|
@@ -231,9 +231,9 @@ class N {
|
|
|
231
231
|
}
|
|
232
232
|
class R {
|
|
233
233
|
constructor(t = {}) {
|
|
234
|
-
this.listeners = /* @__PURE__ */ new Map(), this.isReadonly = !1, this.isDestroyed = !1, this.isReadonly = t.readonly || !1, this.pluginManager = new
|
|
234
|
+
this.listeners = /* @__PURE__ */ new Map(), this.isReadonly = !1, this.isDestroyed = !1, this.isReadonly = t.readonly || !1, this.pluginManager = new N(), t.plugins && Array.isArray(t.plugins) && t.plugins.forEach((o) => this.pluginManager.register(o));
|
|
235
235
|
const e = this.pluginManager.buildSchema();
|
|
236
|
-
this.state = v.create(e), this.commandRegistry = new
|
|
236
|
+
this.state = v.create(e), this.commandRegistry = new O(this.pluginManager.getCommands());
|
|
237
237
|
}
|
|
238
238
|
/**
|
|
239
239
|
* Execute a command
|
|
@@ -315,11 +315,10 @@ class R {
|
|
|
315
315
|
return this.isDestroyed;
|
|
316
316
|
}
|
|
317
317
|
}
|
|
318
|
-
class
|
|
318
|
+
class z {
|
|
319
319
|
// PluginLoader instance to get all registered plugins
|
|
320
320
|
setLastCommandTrigger(t, e) {
|
|
321
|
-
if (typeof window == "undefined" || !t)
|
|
322
|
-
return;
|
|
321
|
+
if (typeof window == "undefined" || !t) return;
|
|
323
322
|
const o = e || t.getAttribute("data-command") || void 0;
|
|
324
323
|
o && (window.__editoraLastCommandButton = t, window.__editoraLastCommand = o);
|
|
325
324
|
}
|
|
@@ -626,8 +625,7 @@ class O {
|
|
|
626
625
|
* Update button state
|
|
627
626
|
*/
|
|
628
627
|
updateButtonState(t, e) {
|
|
629
|
-
if (!this.container)
|
|
630
|
-
return;
|
|
628
|
+
if (!this.container) return;
|
|
631
629
|
const o = this.container.querySelector(
|
|
632
630
|
`[data-command="${t}"]`
|
|
633
631
|
);
|
|
@@ -643,7 +641,7 @@ class O {
|
|
|
643
641
|
}), this.container.innerHTML = ""), this.commandHandler = void 0;
|
|
644
642
|
}
|
|
645
643
|
}
|
|
646
|
-
class
|
|
644
|
+
class H {
|
|
647
645
|
constructor(t) {
|
|
648
646
|
this.visible = !1, this.config = t;
|
|
649
647
|
}
|
|
@@ -685,7 +683,7 @@ class z {
|
|
|
685
683
|
this.container && this.container.parentNode && this.container.parentNode.removeChild(this.container), this.container = void 0, this.visible = !1;
|
|
686
684
|
}
|
|
687
685
|
}
|
|
688
|
-
class
|
|
686
|
+
class j {
|
|
689
687
|
constructor(t = {}) {
|
|
690
688
|
this.statusInfo = {}, this.config = t;
|
|
691
689
|
}
|
|
@@ -706,8 +704,7 @@ class H {
|
|
|
706
704
|
* Render status bar content
|
|
707
705
|
*/
|
|
708
706
|
render() {
|
|
709
|
-
if (!this.container)
|
|
710
|
-
return;
|
|
707
|
+
if (!this.container) return;
|
|
711
708
|
this.container.innerHTML = "";
|
|
712
709
|
const t = document.createElement("div");
|
|
713
710
|
t.className = "editora-statusbar-left";
|
|
@@ -746,12 +743,12 @@ class H {
|
|
|
746
743
|
this.container && this.container.parentNode && this.container.parentNode.removeChild(this.container), this.container = void 0;
|
|
747
744
|
}
|
|
748
745
|
}
|
|
749
|
-
function
|
|
750
|
-
const e = i.textContent || "", o =
|
|
746
|
+
function F(i, t) {
|
|
747
|
+
const e = i.textContent || "", o = $(i, t.startContainer, t.startOffset), n = e.substring(0, o).split(`
|
|
751
748
|
`), a = n.length, s = n[n.length - 1].length + 1;
|
|
752
749
|
return { line: a, column: s };
|
|
753
750
|
}
|
|
754
|
-
function
|
|
751
|
+
function $(i, t, e) {
|
|
755
752
|
var a;
|
|
756
753
|
let o = 0;
|
|
757
754
|
const r = document.createTreeWalker(
|
|
@@ -764,13 +761,12 @@ function F(i, t, e) {
|
|
|
764
761
|
if (n === t) {
|
|
765
762
|
o += e;
|
|
766
763
|
break;
|
|
767
|
-
} else
|
|
768
|
-
n.nodeType === Node.TEXT_NODE && (o += ((a = n.textContent) == null ? void 0 : a.length) || 0);
|
|
764
|
+
} else n.nodeType === Node.TEXT_NODE && (o += ((a = n.textContent) == null ? void 0 : a.length) || 0);
|
|
769
765
|
n = r.nextNode();
|
|
770
766
|
}
|
|
771
767
|
return o;
|
|
772
768
|
}
|
|
773
|
-
function
|
|
769
|
+
function W(i) {
|
|
774
770
|
var o, r;
|
|
775
771
|
const t = i.querySelectorAll("div, p, br, h1, h2, h3, h4, h5, h6, blockquote, li, pre");
|
|
776
772
|
let e = 1;
|
|
@@ -785,11 +781,11 @@ function $(i) {
|
|
|
785
781
|
}
|
|
786
782
|
return e;
|
|
787
783
|
}
|
|
788
|
-
function
|
|
784
|
+
function _(i) {
|
|
789
785
|
const t = i.trim() ? i.trim().split(/\s+/).length : 0, e = i.length;
|
|
790
786
|
return { words: t, chars: e };
|
|
791
787
|
}
|
|
792
|
-
function
|
|
788
|
+
function U(i, t) {
|
|
793
789
|
const e = i.toString();
|
|
794
790
|
return {
|
|
795
791
|
startLine: t.line,
|
|
@@ -801,7 +797,7 @@ function _(i, t) {
|
|
|
801
797
|
selectedWords: e.trim().split(/\s+/).filter(Boolean).length
|
|
802
798
|
};
|
|
803
799
|
}
|
|
804
|
-
class
|
|
800
|
+
class K {
|
|
805
801
|
constructor(t) {
|
|
806
802
|
this.shortcuts = /* @__PURE__ */ new Map(), this.enabled = !0, this.isMac = typeof navigator != "undefined" && navigator.platform.toUpperCase().indexOf("MAC") >= 0, (t == null ? void 0 : t.enabled) === !1 && (this.enabled = !1), this.registerDefaultShortcuts(), t != null && t.shortcuts && t.shortcuts.forEach((e) => this.registerShortcut(e)), t != null && t.customShortcuts && Object.values(t.customShortcuts).forEach((e) => {
|
|
807
803
|
this.registerShortcut(e);
|
|
@@ -1087,8 +1083,7 @@ class U {
|
|
|
1087
1083
|
return t.ctrlKey && e.push("ctrl"), t.altKey && e.push("alt"), t.shiftKey && e.push("shift"), t.metaKey && e.push("meta"), e.push(t.key.toLowerCase()), e.join("+");
|
|
1088
1084
|
}
|
|
1089
1085
|
handleKeyDown(t, e) {
|
|
1090
|
-
if (!this.enabled)
|
|
1091
|
-
return !1;
|
|
1086
|
+
if (!this.enabled) return !1;
|
|
1092
1087
|
const o = this.getEventKey(t), r = this.shortcuts.get(o);
|
|
1093
1088
|
return r ? (r.preventDefault !== !1 && (t.preventDefault(), t.stopPropagation()), e(r.command, r.params), !0) : !1;
|
|
1094
1089
|
}
|
|
@@ -1137,7 +1132,7 @@ class U {
|
|
|
1137
1132
|
return t.includes("toggle") && (t.includes("Bold") || t.includes("Italic") || t.includes("Underline") || t.includes("Strike") || t.includes("Code") || t.includes("Super") || t.includes("Sub")) ? "Text Formatting" : t.includes("Heading") || t.includes("Paragraph") ? "Block Formatting" : t.includes("List") || t.includes("Checklist") ? "Lists" : t.includes("Alignment") || t.includes("Indent") ? "Alignment & Indentation" : t.includes("undo") || t.includes("redo") ? "History" : t.includes("insert") ? "Insert" : t.includes("find") || t.includes("replace") ? "Find & Replace" : t.includes("Accessibility") || t.includes("spell") ? "Tools" : "Other";
|
|
1138
1133
|
}
|
|
1139
1134
|
}
|
|
1140
|
-
const
|
|
1135
|
+
const q = [
|
|
1141
1136
|
"p",
|
|
1142
1137
|
"br",
|
|
1143
1138
|
"strong",
|
|
@@ -1161,6 +1156,7 @@ const K = [
|
|
|
1161
1156
|
"img",
|
|
1162
1157
|
"video",
|
|
1163
1158
|
"audio",
|
|
1159
|
+
"iframe",
|
|
1164
1160
|
"table",
|
|
1165
1161
|
"thead",
|
|
1166
1162
|
"tbody",
|
|
@@ -1176,23 +1172,24 @@ const K = [
|
|
|
1176
1172
|
"sup",
|
|
1177
1173
|
"sub",
|
|
1178
1174
|
"hr"
|
|
1179
|
-
],
|
|
1180
|
-
"*": ["class", "style", "id", "data-*", "role", "aria-*", "tabindex", "contenteditable", "spellcheck"],
|
|
1175
|
+
], V = {
|
|
1176
|
+
"*": ["class", "style", "id", "data-*", "role", "aria-*", "tabindex", "contenteditable", "spellcheck", "dir", "lang"],
|
|
1181
1177
|
a: ["href", "target", "rel", "title"],
|
|
1182
1178
|
img: ["src", "alt", "width", "height", "loading"],
|
|
1183
1179
|
video: ["src", "controls", "width", "height", "autoplay", "loop", "muted"],
|
|
1184
1180
|
audio: ["src", "controls", "autoplay", "loop", "muted"],
|
|
1181
|
+
iframe: ["src", "width", "height", "name", "title", "longdesc", "allow", "allowfullscreen", "frameborder", "scrolling", "loading", "referrerpolicy"],
|
|
1185
1182
|
table: ["border", "cellpadding", "cellspacing"],
|
|
1186
1183
|
td: ["colspan", "rowspan", "align", "valign"],
|
|
1187
1184
|
th: ["colspan", "rowspan", "align", "valign"]
|
|
1188
1185
|
};
|
|
1189
|
-
function
|
|
1186
|
+
function I(i, t, e) {
|
|
1190
1187
|
if ((t == null ? void 0 : t.sanitize) === !1)
|
|
1191
1188
|
return i;
|
|
1192
|
-
const o = t != null && t.allowedTags && t.allowedTags.length > 0 ? t.allowedTags :
|
|
1193
|
-
return a.innerHTML = i,
|
|
1189
|
+
const o = t != null && t.allowedTags && t.allowedTags.length > 0 ? t.allowedTags : q, n = !!(t != null && t.allowedAttributes) && Object.keys(t.allowedAttributes).length > 0 ? t.allowedAttributes : V, a = document.createElement("div");
|
|
1190
|
+
return a.innerHTML = i, D(a, o, n), a.innerHTML;
|
|
1194
1191
|
}
|
|
1195
|
-
function
|
|
1192
|
+
function D(i, t, e) {
|
|
1196
1193
|
const o = Array.from(i.childNodes);
|
|
1197
1194
|
for (const r of o)
|
|
1198
1195
|
if (r.nodeType === Node.ELEMENT_NODE) {
|
|
@@ -1203,11 +1200,10 @@ function P(i, t, e) {
|
|
|
1203
1200
|
i.removeChild(n);
|
|
1204
1201
|
continue;
|
|
1205
1202
|
}
|
|
1206
|
-
|
|
1207
|
-
} else
|
|
1208
|
-
r.nodeType !== Node.TEXT_NODE && i.removeChild(r);
|
|
1203
|
+
G(n, e), D(n, t, e);
|
|
1204
|
+
} else r.nodeType !== Node.TEXT_NODE && i.removeChild(r);
|
|
1209
1205
|
}
|
|
1210
|
-
function
|
|
1206
|
+
function G(i, t) {
|
|
1211
1207
|
const e = i.tagName.toLowerCase(), o = Array.from(i.attributes), r = t[e] || [], n = t["*"] || [], a = [...r, ...n];
|
|
1212
1208
|
for (const s of o) {
|
|
1213
1209
|
const l = s.name.toLowerCase();
|
|
@@ -1221,17 +1217,17 @@ function V(i, t) {
|
|
|
1221
1217
|
break;
|
|
1222
1218
|
}
|
|
1223
1219
|
}
|
|
1224
|
-
(l.startsWith("on") || l === "javascript:" || l === "href" && s.value.trim().toLowerCase().startsWith("javascript:") || l === "src" && s.value.trim().toLowerCase().startsWith("javascript:")) && (c = !1), c || i.removeAttribute(s.name);
|
|
1220
|
+
(l.startsWith("on") || l === "javascript:" || l === "href" && s.value.trim().toLowerCase().startsWith("javascript:") || l === "src" && s.value.trim().toLowerCase().startsWith("javascript:")) && (c = !1), l === "dir" && !["ltr", "rtl", "auto"].includes(s.value.trim().toLowerCase()) && (c = !1), c || i.removeAttribute(s.name);
|
|
1225
1221
|
}
|
|
1226
1222
|
i.hasAttribute("href") && (i.getAttribute("href") || "").trim().toLowerCase().startsWith("javascript:") && i.removeAttribute("href"), i.hasAttribute("src") && (i.getAttribute("src") || "").trim().toLowerCase().startsWith("javascript:") && i.removeAttribute("src");
|
|
1227
1223
|
}
|
|
1228
|
-
function G(i, t, e) {
|
|
1229
|
-
return (e == null ? void 0 : e.sanitizeOnPaste) === !1 ? i : M(i, t);
|
|
1230
|
-
}
|
|
1231
1224
|
function X(i, t, e) {
|
|
1232
|
-
return (e == null ? void 0 : e.
|
|
1225
|
+
return (e == null ? void 0 : e.sanitizeOnPaste) === !1 ? i : I(i, t);
|
|
1226
|
+
}
|
|
1227
|
+
function Y(i, t, e) {
|
|
1228
|
+
return (e == null ? void 0 : e.sanitizeOnInput) === !1 ? i : I(i, t);
|
|
1233
1229
|
}
|
|
1234
|
-
class
|
|
1230
|
+
const S = class S {
|
|
1235
1231
|
/**
|
|
1236
1232
|
* Resolve configuration from multiple sources with priority
|
|
1237
1233
|
*/
|
|
@@ -1378,14 +1374,10 @@ class I {
|
|
|
1378
1374
|
* Parse attribute value to appropriate type
|
|
1379
1375
|
*/
|
|
1380
1376
|
static parseAttributeValue(t) {
|
|
1381
|
-
if (t === "true")
|
|
1382
|
-
|
|
1383
|
-
if (t
|
|
1384
|
-
|
|
1385
|
-
if (/^\d+$/.test(t))
|
|
1386
|
-
return parseInt(t, 10);
|
|
1387
|
-
if (/^\d+\.\d+$/.test(t))
|
|
1388
|
-
return parseFloat(t);
|
|
1377
|
+
if (t === "true") return !0;
|
|
1378
|
+
if (t === "false") return !1;
|
|
1379
|
+
if (/^\d+$/.test(t)) return parseInt(t, 10);
|
|
1380
|
+
if (/^\d+\.\d+$/.test(t)) return parseFloat(t);
|
|
1389
1381
|
if (t.startsWith("{") || t.startsWith("["))
|
|
1390
1382
|
try {
|
|
1391
1383
|
return JSON.parse(t);
|
|
@@ -1426,8 +1418,8 @@ class I {
|
|
|
1426
1418
|
n != null && (typeof n == "object" && !Array.isArray(n) && e[r] ? e[r] = this.merge(e[r], n) : e[r] = n);
|
|
1427
1419
|
return e;
|
|
1428
1420
|
}
|
|
1429
|
-
}
|
|
1430
|
-
|
|
1421
|
+
};
|
|
1422
|
+
S.EDITOR_DEFAULTS = {
|
|
1431
1423
|
height: 400,
|
|
1432
1424
|
width: "100%",
|
|
1433
1425
|
readonly: !1,
|
|
@@ -1477,96 +1469,86 @@ I.EDITOR_DEFAULTS = {
|
|
|
1477
1469
|
},
|
|
1478
1470
|
statusbar: !1
|
|
1479
1471
|
};
|
|
1480
|
-
const Y = `.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 0%,#1c2430 100%);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:white;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;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-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 0%,#1b2430 100%)!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 0%,#252d37 100%);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:rgba(0,102,204,.2)}.editora-theme-dark .editora-content ::selection{background:rgba(77,184,255,.2)}.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:#ffffff;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:#ffffff;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:#ffffff;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}}
|
|
1481
|
-
`;
|
|
1472
|
+
let x = S;
|
|
1473
|
+
const J = '.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;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-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}}';
|
|
1482
1474
|
let y;
|
|
1483
|
-
const
|
|
1484
|
-
let m = null,
|
|
1485
|
-
function
|
|
1486
|
-
if (!(i instanceof HTMLElement))
|
|
1487
|
-
return !1;
|
|
1475
|
+
const Q = "__editoraCommandEditorRoot", Z = "__editoraLastCommandButton", A = "editora-editor, [data-editora-editor], .rte-editor, .editora-editor", T = ".rte-content, .editora-content", E = /* @__PURE__ */ new Set();
|
|
1476
|
+
let m = null, L = !1, w = null, C = null;
|
|
1477
|
+
function M(i) {
|
|
1478
|
+
if (!(i instanceof HTMLElement)) return !1;
|
|
1488
1479
|
const t = i;
|
|
1489
1480
|
return typeof t.execCommand == "function" && (t.tagName.toLowerCase() === "editora-editor" || t.classList.contains("editora-editor") || t.hasAttribute("data-editora-editor"));
|
|
1490
1481
|
}
|
|
1491
|
-
function
|
|
1482
|
+
function tt(i) {
|
|
1492
1483
|
return i ? i.nodeType === Node.ELEMENT_NODE ? i : i.parentElement : null;
|
|
1493
1484
|
}
|
|
1494
1485
|
function b(i) {
|
|
1495
|
-
if (!i)
|
|
1496
|
-
|
|
1497
|
-
if (T(i))
|
|
1486
|
+
if (!i) return null;
|
|
1487
|
+
if (M(i))
|
|
1498
1488
|
return i;
|
|
1499
|
-
const t = i.matches(
|
|
1500
|
-
return !t || !
|
|
1489
|
+
const t = i.matches(A) ? i : i.closest(A);
|
|
1490
|
+
return !t || !M(t) ? null : t;
|
|
1501
1491
|
}
|
|
1502
|
-
function
|
|
1492
|
+
function et() {
|
|
1503
1493
|
var r;
|
|
1504
|
-
if (typeof window == "undefined")
|
|
1505
|
-
|
|
1506
|
-
const i = window[J];
|
|
1494
|
+
if (typeof window == "undefined") return null;
|
|
1495
|
+
const i = window[Q];
|
|
1507
1496
|
if (i instanceof HTMLElement) {
|
|
1508
1497
|
const n = b(i);
|
|
1509
|
-
if (n)
|
|
1510
|
-
|
|
1511
|
-
const a = i.matches(S) ? i : i.querySelector(S);
|
|
1498
|
+
if (n) return n;
|
|
1499
|
+
const a = i.matches(T) ? i : i.querySelector(T);
|
|
1512
1500
|
if (a) {
|
|
1513
1501
|
const s = b(a);
|
|
1514
|
-
if (s)
|
|
1515
|
-
return s;
|
|
1502
|
+
if (s) return s;
|
|
1516
1503
|
}
|
|
1517
1504
|
}
|
|
1518
|
-
const t = window[
|
|
1505
|
+
const t = window[Z];
|
|
1519
1506
|
if (t instanceof HTMLElement) {
|
|
1520
1507
|
const n = b(t);
|
|
1521
|
-
if (n)
|
|
1522
|
-
return n;
|
|
1508
|
+
if (n) return n;
|
|
1523
1509
|
}
|
|
1524
1510
|
const e = document.activeElement;
|
|
1525
1511
|
if (e) {
|
|
1526
1512
|
const n = b(e);
|
|
1527
|
-
if (n)
|
|
1528
|
-
return n;
|
|
1513
|
+
if (n) return n;
|
|
1529
1514
|
}
|
|
1530
1515
|
const o = (r = window.getSelection) == null ? void 0 : r.call(window);
|
|
1531
1516
|
if (o && o.rangeCount > 0) {
|
|
1532
|
-
const n = b(
|
|
1533
|
-
if (n)
|
|
1534
|
-
return n;
|
|
1517
|
+
const n = b(tt(o.getRangeAt(0).startContainer));
|
|
1518
|
+
if (n) return n;
|
|
1535
1519
|
}
|
|
1536
1520
|
if (m && m.isConnected)
|
|
1537
1521
|
return m;
|
|
1538
|
-
for (const n of
|
|
1539
|
-
if (n.isConnected)
|
|
1540
|
-
return n;
|
|
1522
|
+
for (const n of E)
|
|
1523
|
+
if (n.isConnected) return n;
|
|
1541
1524
|
return null;
|
|
1542
1525
|
}
|
|
1543
|
-
function
|
|
1544
|
-
if (typeof window == "undefined" ||
|
|
1545
|
-
return;
|
|
1526
|
+
function ot() {
|
|
1527
|
+
if (typeof window == "undefined" || L) return;
|
|
1546
1528
|
w = typeof window.executeEditorCommand == "function" ? window.executeEditorCommand.bind(window) : null, C = typeof window.execEditorCommand == "function" ? window.execEditorCommand.bind(window) : null;
|
|
1547
1529
|
const i = (t, e) => {
|
|
1548
|
-
const o =
|
|
1530
|
+
const o = et();
|
|
1549
1531
|
return o ? o.execCommand(t, e) : w ? w(t, e) : C ? C(t, e) : !1;
|
|
1550
1532
|
};
|
|
1551
|
-
window.executeEditorCommand = i, window.execEditorCommand = i,
|
|
1533
|
+
window.executeEditorCommand = i, window.execEditorCommand = i, L = !0;
|
|
1552
1534
|
}
|
|
1553
|
-
function
|
|
1535
|
+
function it() {
|
|
1554
1536
|
const i = "editora-webcomponent-styles";
|
|
1555
1537
|
if (!document.getElementById(i)) {
|
|
1556
1538
|
const t = document.createElement("style");
|
|
1557
|
-
t.id = i, t.textContent =
|
|
1539
|
+
t.id = i, t.textContent = J, document.head.appendChild(t);
|
|
1558
1540
|
}
|
|
1559
1541
|
}
|
|
1560
|
-
function
|
|
1542
|
+
function nt() {
|
|
1561
1543
|
if (!y) {
|
|
1562
1544
|
const i = g.__globalPluginLoader;
|
|
1563
|
-
i ? y = i : y = new
|
|
1545
|
+
i ? y = i : y = new P();
|
|
1564
1546
|
}
|
|
1565
1547
|
return y;
|
|
1566
1548
|
}
|
|
1567
1549
|
class g extends HTMLElement {
|
|
1568
1550
|
constructor() {
|
|
1569
|
-
if (super(), this.pluginLoader =
|
|
1551
|
+
if (super(), this.pluginLoader = nt(), this.config = {}, this.isInitialized = !1, this.keyboardShortcutManager = new K(), this.lastAutosavedContent = "", this.loadedPlugins = [], this.lastBeforeInputType = null, it(), !this.hasAttribute("data-initial-content")) {
|
|
1570
1552
|
const t = this.innerHTML.trim();
|
|
1571
1553
|
t && this.setAttribute("data-initial-content", t);
|
|
1572
1554
|
}
|
|
@@ -1629,7 +1611,7 @@ class g extends HTMLElement {
|
|
|
1629
1611
|
});
|
|
1630
1612
|
}
|
|
1631
1613
|
/**
|
|
1632
|
-
* Wait for the
|
|
1614
|
+
* Wait for the global plugin loader to be available
|
|
1633
1615
|
*/
|
|
1634
1616
|
async waitForPluginLoader() {
|
|
1635
1617
|
if (g.__globalPluginLoader) {
|
|
@@ -1666,9 +1648,8 @@ class g extends HTMLElement {
|
|
|
1666
1648
|
*/
|
|
1667
1649
|
async initialize() {
|
|
1668
1650
|
var o;
|
|
1669
|
-
if (this.querySelector(".editora-toolbar") || this.isInitialized)
|
|
1670
|
-
|
|
1671
|
-
this.setAttribute("data-editora-editor", "true"), x.add(this), m || (m = this), et(), 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}`);
|
|
1651
|
+
if (this.querySelector(".editora-toolbar") || this.isInitialized) return;
|
|
1652
|
+
this.setAttribute("data-editora-editor", "true"), E.add(this), m || (m = this), ot(), 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}`);
|
|
1672
1653
|
const t = await this.loadPlugins();
|
|
1673
1654
|
this.loadedPlugins = t, t.forEach((r) => {
|
|
1674
1655
|
if (r.init && typeof r.init == "function")
|
|
@@ -1734,20 +1715,14 @@ class g extends HTMLElement {
|
|
|
1734
1715
|
}
|
|
1735
1716
|
resolveToolbarItems() {
|
|
1736
1717
|
const t = this.config.toolbarItems;
|
|
1737
|
-
if (typeof t == "string")
|
|
1738
|
-
|
|
1739
|
-
if (Array.isArray(t))
|
|
1740
|
-
return t.join(" ");
|
|
1718
|
+
if (typeof t == "string") return t;
|
|
1719
|
+
if (Array.isArray(t)) return t.join(" ");
|
|
1741
1720
|
const e = this.config.toolbar;
|
|
1742
|
-
if (typeof e == "string")
|
|
1743
|
-
|
|
1744
|
-
if (!e || typeof e != "object")
|
|
1745
|
-
return;
|
|
1721
|
+
if (typeof e == "string") return e;
|
|
1722
|
+
if (!e || typeof e != "object") return;
|
|
1746
1723
|
const o = e.items;
|
|
1747
|
-
if (typeof o == "string")
|
|
1748
|
-
|
|
1749
|
-
if (Array.isArray(o))
|
|
1750
|
-
return o.join(" ");
|
|
1724
|
+
if (typeof o == "string") return o;
|
|
1725
|
+
if (Array.isArray(o)) return o.join(" ");
|
|
1751
1726
|
}
|
|
1752
1727
|
isToolbarStickyEnabled() {
|
|
1753
1728
|
const t = this.config.toolbar;
|
|
@@ -1809,14 +1784,12 @@ class g extends HTMLElement {
|
|
|
1809
1784
|
};
|
|
1810
1785
|
}
|
|
1811
1786
|
isEditorInViewport() {
|
|
1812
|
-
if (!this.contentElement || typeof window == "undefined")
|
|
1813
|
-
return !0;
|
|
1787
|
+
if (!this.contentElement || typeof window == "undefined") return !0;
|
|
1814
1788
|
const t = this.contentElement.getBoundingClientRect();
|
|
1815
1789
|
return t.bottom >= 0 && t.top <= window.innerHeight;
|
|
1816
1790
|
}
|
|
1817
1791
|
applyAccessibilitySettings() {
|
|
1818
|
-
if (!this.contentElement)
|
|
1819
|
-
return;
|
|
1792
|
+
if (!this.contentElement) return;
|
|
1820
1793
|
const t = this.getAccessibilityConfig();
|
|
1821
1794
|
if (t.enableARIA) {
|
|
1822
1795
|
this.contentElement.setAttribute("role", "textbox"), this.contentElement.setAttribute("aria-multiline", "true"), this.contentElement.setAttribute("aria-disabled", this.config.readonly ? "true" : "false");
|
|
@@ -1827,8 +1800,7 @@ class g extends HTMLElement {
|
|
|
1827
1800
|
this.contentElement.tabIndex = t.keyboardNavigation ? 0 : -1;
|
|
1828
1801
|
}
|
|
1829
1802
|
applyLanguageSettings() {
|
|
1830
|
-
if (!this.contentElement)
|
|
1831
|
-
return;
|
|
1803
|
+
if (!this.contentElement) return;
|
|
1832
1804
|
const t = this.getLanguageConfig();
|
|
1833
1805
|
this.contentElement.setAttribute("lang", t.locale), this.contentElement.setAttribute("dir", t.direction);
|
|
1834
1806
|
}
|
|
@@ -1850,8 +1822,7 @@ class g extends HTMLElement {
|
|
|
1850
1822
|
return { enabled: !1, provider: "browser" };
|
|
1851
1823
|
}
|
|
1852
1824
|
applySpellcheckSettings() {
|
|
1853
|
-
if (!this.contentElement)
|
|
1854
|
-
return;
|
|
1825
|
+
if (!this.contentElement) return;
|
|
1855
1826
|
const t = this.getSpellcheckConfig(), e = t.enabled && t.provider === "browser";
|
|
1856
1827
|
this.contentElement.spellcheck = e, this.contentElement.setAttribute("spellcheck", e ? "true" : "false");
|
|
1857
1828
|
}
|
|
@@ -1964,8 +1935,7 @@ class g extends HTMLElement {
|
|
|
1964
1935
|
}
|
|
1965
1936
|
restoreAutosavedContent() {
|
|
1966
1937
|
const t = this.getAutosaveConfig();
|
|
1967
|
-
if (!t.enabled || t.provider !== "localStorage")
|
|
1968
|
-
return null;
|
|
1938
|
+
if (!t.enabled || t.provider !== "localStorage") return null;
|
|
1969
1939
|
try {
|
|
1970
1940
|
const e = localStorage.getItem(t.storageKey);
|
|
1971
1941
|
if (e)
|
|
@@ -1987,8 +1957,7 @@ class g extends HTMLElement {
|
|
|
1987
1957
|
}, t.intervalMs));
|
|
1988
1958
|
}
|
|
1989
1959
|
insertHTMLAtSelection(t) {
|
|
1990
|
-
if (!this.contentElement)
|
|
1991
|
-
return;
|
|
1960
|
+
if (!this.contentElement) return;
|
|
1992
1961
|
const e = window.getSelection();
|
|
1993
1962
|
if (e && e.rangeCount > 0) {
|
|
1994
1963
|
const o = e.getRangeAt(0);
|
|
@@ -2007,7 +1976,7 @@ class g extends HTMLElement {
|
|
|
2007
1976
|
*/
|
|
2008
1977
|
createUI(t, e) {
|
|
2009
1978
|
const o = this.querySelector('[slot="toolbar"]'), r = this.querySelector('[slot="statusbar"]');
|
|
2010
|
-
this.innerHTML = "", this.config.toolbar !== !1 && !o ? (this.toolbarElement = document.createElement("div"), this.toolbarElement.className = "editora-toolbar-container", this.appendChild(this.toolbarElement), this.toolbar = new
|
|
1979
|
+
this.innerHTML = "", this.config.toolbar !== !1 && !o ? (this.toolbarElement = document.createElement("div"), this.toolbarElement.className = "editora-toolbar-container", this.appendChild(this.toolbarElement), this.toolbar = new z(
|
|
2011
1980
|
{
|
|
2012
1981
|
items: this.resolveToolbarItems(),
|
|
2013
1982
|
sticky: this.isToolbarStickyEnabled(),
|
|
@@ -2044,7 +2013,7 @@ class g extends HTMLElement {
|
|
|
2044
2013
|
}) && e.trim() ? this.contentElement.innerHTML = `<p>${e.trim()}</p>` : this.contentElement.innerHTML = e;
|
|
2045
2014
|
} else
|
|
2046
2015
|
this.config.placeholder ? this.contentElement.innerHTML = "" : this.contentElement.innerHTML = "<p><br></p>";
|
|
2047
|
-
this.appendChild(this.contentElement), this.isToolbarFloatingEnabled() && (this.floatingToolbar = new
|
|
2016
|
+
this.appendChild(this.contentElement), this.isToolbarFloatingEnabled() && (this.floatingToolbar = new H({ enabled: !0 }), this.floatingToolbar.create(this)), r ? this.appendChild(r) : this.isStatusbarEnabled() && (this.statusBarElement = document.createElement("div"), this.statusBarElement.className = "editora-statusbar-container", this.appendChild(this.statusBarElement), this.statusBar = new j({ position: this.getStatusbarPosition() }), this.statusBar.create(this.statusBarElement)), this.config.autofocus && setTimeout(() => {
|
|
2048
2017
|
var n;
|
|
2049
2018
|
return (n = this.contentElement) == null ? void 0 : n.focus();
|
|
2050
2019
|
}, 0);
|
|
@@ -2053,18 +2022,16 @@ class g extends HTMLElement {
|
|
|
2053
2022
|
* Setup event listeners
|
|
2054
2023
|
*/
|
|
2055
2024
|
setupEventListeners() {
|
|
2056
|
-
if (!this.contentElement || !this.engine)
|
|
2057
|
-
return;
|
|
2025
|
+
if (!this.contentElement || !this.engine) return;
|
|
2058
2026
|
const t = this.keyboardShortcutManager;
|
|
2059
2027
|
this.contentElement.addEventListener("beforeinput", (o) => {
|
|
2060
2028
|
this.lastBeforeInputType = o.inputType || null;
|
|
2061
2029
|
}), this.contentElement.addEventListener("input", () => {
|
|
2062
|
-
if (!this.contentElement)
|
|
2063
|
-
return;
|
|
2030
|
+
if (!this.contentElement) return;
|
|
2064
2031
|
let o = this.contentElement.innerHTML;
|
|
2065
2032
|
const r = this.getPerformanceConfig(), n = this.getContentSanitizeConfig(), a = this.getSecurityConfig(), s = this.lastBeforeInputType;
|
|
2066
2033
|
if (this.lastBeforeInputType = null, a.sanitizeOnInput !== !1 && n.sanitize !== !1 && !s) {
|
|
2067
|
-
const d =
|
|
2034
|
+
const d = Y(o, n, a);
|
|
2068
2035
|
if (d !== o) {
|
|
2069
2036
|
const h = window.getSelection(), p = h && h.rangeCount > 0 ? h.getRangeAt(0) : null;
|
|
2070
2037
|
if (this.contentElement.innerHTML = d, p && h)
|
|
@@ -2103,7 +2070,7 @@ class g extends HTMLElement {
|
|
|
2103
2070
|
return;
|
|
2104
2071
|
}
|
|
2105
2072
|
if (n) {
|
|
2106
|
-
l.sanitizeOnPaste !== !1 && s.sanitize !== !1 && (n =
|
|
2073
|
+
l.sanitizeOnPaste !== !1 && s.sanitize !== !1 && (n = X(n, s, l)), this.insertHTMLAtSelection(n);
|
|
2107
2074
|
return;
|
|
2108
2075
|
}
|
|
2109
2076
|
a && document.execCommand("insertText", !1, a);
|
|
@@ -2126,8 +2093,7 @@ class g extends HTMLElement {
|
|
|
2126
2093
|
this.selectionChangeHandler = e, document.addEventListener("selectionchange", this.selectionChangeHandler);
|
|
2127
2094
|
}
|
|
2128
2095
|
getSelectionRangeInEditor() {
|
|
2129
|
-
if (!this.contentElement)
|
|
2130
|
-
return null;
|
|
2096
|
+
if (!this.contentElement) return null;
|
|
2131
2097
|
const t = window.getSelection();
|
|
2132
2098
|
if (!t || t.rangeCount === 0)
|
|
2133
2099
|
return null;
|
|
@@ -2135,8 +2101,7 @@ class g extends HTMLElement {
|
|
|
2135
2101
|
return this.contentElement.contains(o) ? e : null;
|
|
2136
2102
|
}
|
|
2137
2103
|
isSelectionBackward(t) {
|
|
2138
|
-
if (!t.anchorNode || !t.focusNode)
|
|
2139
|
-
return !1;
|
|
2104
|
+
if (!t.anchorNode || !t.focusNode) return !1;
|
|
2140
2105
|
try {
|
|
2141
2106
|
const e = document.createRange();
|
|
2142
2107
|
return e.setStart(t.anchorNode, t.anchorOffset), e.setEnd(t.focusNode, t.focusOffset), e.collapsed;
|
|
@@ -2152,8 +2117,7 @@ class g extends HTMLElement {
|
|
|
2152
2117
|
* Update floating toolbar position
|
|
2153
2118
|
*/
|
|
2154
2119
|
updateFloatingToolbar() {
|
|
2155
|
-
if (!this.floatingToolbar || !this.contentElement)
|
|
2156
|
-
return;
|
|
2120
|
+
if (!this.floatingToolbar || !this.contentElement) return;
|
|
2157
2121
|
if (this.config.readonly || this.contentElement.contentEditable === "false" || this.contentElement.getAttribute("data-readonly") === "true" || this.getAttribute("readonly") === "true" || this.getAttribute("data-readonly") === "true") {
|
|
2158
2122
|
this.floatingToolbar.hide();
|
|
2159
2123
|
return;
|
|
@@ -2191,15 +2155,14 @@ class g extends HTMLElement {
|
|
|
2191
2155
|
* Update status bar with current content and cursor information
|
|
2192
2156
|
*/
|
|
2193
2157
|
updateStatusBar() {
|
|
2194
|
-
if (!this.statusBar || !this.contentElement)
|
|
2195
|
-
return;
|
|
2158
|
+
if (!this.statusBar || !this.contentElement) return;
|
|
2196
2159
|
const t = this.getPerformanceConfig(), e = document.activeElement === this.contentElement || this.contentElement.contains(document.activeElement);
|
|
2197
2160
|
if (t.viewportOnlyScan && !this.isEditorInViewport() && !e)
|
|
2198
2161
|
return;
|
|
2199
|
-
const o = this.contentElement.textContent || "", { words: r, chars: n } =
|
|
2162
|
+
const o = this.contentElement.textContent || "", { words: r, chars: n } = _(o), a = W(this.contentElement);
|
|
2200
2163
|
let s, l;
|
|
2201
2164
|
const c = this.getSelectionRangeInEditor();
|
|
2202
|
-
c && (s =
|
|
2165
|
+
c && (s = F(this.contentElement, c), c.collapsed || (l = U(c, s), s = void 0)), this.statusBar.update({
|
|
2203
2166
|
wordCount: r,
|
|
2204
2167
|
charCount: n,
|
|
2205
2168
|
lineCount: a,
|
|
@@ -2284,7 +2247,7 @@ class g extends HTMLElement {
|
|
|
2284
2247
|
const o = this.attributes[e];
|
|
2285
2248
|
t[o.name] = o.value;
|
|
2286
2249
|
}
|
|
2287
|
-
return
|
|
2250
|
+
return x.resolve({
|
|
2288
2251
|
jsConfig: this.jsConfig,
|
|
2289
2252
|
attributes: t
|
|
2290
2253
|
});
|
|
@@ -2325,7 +2288,7 @@ class g extends HTMLElement {
|
|
|
2325
2288
|
*/
|
|
2326
2289
|
destroy() {
|
|
2327
2290
|
var t, e, o, r;
|
|
2328
|
-
this.contentChangeDebounceTimer && (clearTimeout(this.contentChangeDebounceTimer), this.contentChangeDebounceTimer = void 0), this.contentElement && this.persistAutosave(this.contentElement.innerHTML || ""), this.stopAutosave(), this.selectionChangeHandler && (document.removeEventListener("selectionchange", this.selectionChangeHandler), this.selectionChangeHandler = void 0), (t = this.engine) == null || t.destroy(), (e = this.toolbar) == null || e.destroy(), (o = this.floatingToolbar) == null || o.destroy(), (r = this.statusBar) == null || r.destroy(), this.innerHTML = "", this.contentElement = void 0, this.toolbarElement = void 0, this.statusBarElement = void 0, this.loadedPlugins = [], this.isInitialized = !1,
|
|
2291
|
+
this.contentChangeDebounceTimer && (clearTimeout(this.contentChangeDebounceTimer), this.contentChangeDebounceTimer = void 0), this.contentElement && this.persistAutosave(this.contentElement.innerHTML || ""), this.stopAutosave(), this.selectionChangeHandler && (document.removeEventListener("selectionchange", this.selectionChangeHandler), this.selectionChangeHandler = void 0), (t = this.engine) == null || t.destroy(), (e = this.toolbar) == null || e.destroy(), (o = this.floatingToolbar) == null || o.destroy(), (r = this.statusBar) == null || r.destroy(), this.innerHTML = "", this.contentElement = void 0, this.toolbarElement = void 0, this.statusBarElement = void 0, this.loadedPlugins = [], this.isInitialized = !1, E.delete(this), m === this && (m = null), this.dispatchEvent(new Event("editor-destroy", { bubbles: !0 }));
|
|
2329
2292
|
}
|
|
2330
2293
|
// Public API methods
|
|
2331
2294
|
getContent() {
|
|
@@ -2347,95 +2310,95 @@ class g extends HTMLElement {
|
|
|
2347
2310
|
(t = this.contentElement) == null || t.blur();
|
|
2348
2311
|
}
|
|
2349
2312
|
}
|
|
2350
|
-
const k = new
|
|
2313
|
+
const k = new P();
|
|
2351
2314
|
g.__globalPluginLoader = k;
|
|
2352
|
-
const
|
|
2315
|
+
const rt = {
|
|
2353
2316
|
// Core editing plugins (always loaded)
|
|
2354
|
-
bold: () => import("./BoldPlugin.native-
|
|
2355
|
-
italic: () => import("./ItalicPlugin.native-
|
|
2356
|
-
underline: () => import("./UnderlinePlugin.native-
|
|
2357
|
-
strikethrough: () => import("./StrikethroughPlugin.native-
|
|
2358
|
-
clearFormatting: () => import("./ClearFormattingPlugin.native-
|
|
2359
|
-
heading: () => import("./HeadingPlugin.native-
|
|
2360
|
-
blockquote: () => import("./BlockquotePlugin.native-
|
|
2361
|
-
code: () => import("./CodePlugin.native-
|
|
2362
|
-
codeSample: () => import("./CodeSamplePlugin.native-
|
|
2363
|
-
list: () => import("./ListPlugin.native-
|
|
2364
|
-
checklist: () => import("./ChecklistPlugin.native-
|
|
2365
|
-
textAlignment: () => import("./TextAlignmentPlugin.native-
|
|
2366
|
-
indent: () => import("./IndentPlugin.native-
|
|
2367
|
-
direction: () => import("./DirectionPlugin.native-
|
|
2368
|
-
textColor: () => import("./TextColorPlugin.native-
|
|
2369
|
-
backgroundColor: () => import("./BackgroundColorPlugin.native-
|
|
2370
|
-
fontSize: () => import("./FontSizePlugin.native-
|
|
2371
|
-
fontFamily: () => import("./FontFamilyPlugin.native-
|
|
2372
|
-
lineHeight: () => import("./LineHeightPlugin.native-
|
|
2373
|
-
capitalization: () => import("./CapitalizationPlugin.native-
|
|
2374
|
-
history: () => import("./HistoryPlugin.native-
|
|
2317
|
+
bold: () => import("./BoldPlugin.native-CSh_LiIJ.mjs").then((i) => i.BoldPlugin()),
|
|
2318
|
+
italic: () => import("./ItalicPlugin.native-CmnlwFHB.mjs").then((i) => i.ItalicPlugin()),
|
|
2319
|
+
underline: () => import("./UnderlinePlugin.native-DZzg23rv.mjs").then((i) => i.UnderlinePlugin()),
|
|
2320
|
+
strikethrough: () => import("./StrikethroughPlugin.native-V0TL4F48.mjs").then((i) => i.StrikethroughPlugin()),
|
|
2321
|
+
clearFormatting: () => import("./ClearFormattingPlugin.native-DIS6AN2t.mjs").then((i) => i.ClearFormattingPlugin()),
|
|
2322
|
+
heading: () => import("./HeadingPlugin.native-DZdvubrQ.mjs").then((i) => i.HeadingPlugin()),
|
|
2323
|
+
blockquote: () => import("./BlockquotePlugin.native-57_Xcjl1.mjs").then((i) => i.BlockquotePlugin()),
|
|
2324
|
+
code: () => import("./CodePlugin.native-veDC_kx5.mjs").then((i) => i.CodePlugin()),
|
|
2325
|
+
codeSample: () => import("./CodeSamplePlugin.native-CgGoH-X4.mjs").then((i) => i.CodeSamplePlugin()),
|
|
2326
|
+
list: () => import("./ListPlugin.native-V7EZC1lM.mjs").then((i) => i.ListPlugin()),
|
|
2327
|
+
checklist: () => import("./ChecklistPlugin.native-BS-kMz9O.mjs").then((i) => i.ChecklistPlugin()),
|
|
2328
|
+
textAlignment: () => import("./TextAlignmentPlugin.native-sM_1s00t.mjs").then((i) => i.TextAlignmentPlugin()),
|
|
2329
|
+
indent: () => import("./IndentPlugin.native-BHixp8sP.mjs").then((i) => i.IndentPlugin()),
|
|
2330
|
+
direction: () => import("./DirectionPlugin.native-Bl-QLFzO.mjs").then((i) => i.DirectionPlugin()),
|
|
2331
|
+
textColor: () => import("./TextColorPlugin.native-Bwl_bSmc.mjs").then((i) => i.TextColorPlugin()),
|
|
2332
|
+
backgroundColor: () => import("./BackgroundColorPlugin.native-50iAT9xU.mjs").then((i) => i.BackgroundColorPlugin()),
|
|
2333
|
+
fontSize: () => import("./FontSizePlugin.native-B_jCh7dY.mjs").then((i) => i.FontSizePlugin()),
|
|
2334
|
+
fontFamily: () => import("./FontFamilyPlugin.native-j8hMTbg4.mjs").then((i) => i.FontFamilyPlugin()),
|
|
2335
|
+
lineHeight: () => import("./LineHeightPlugin.native-CM7iXdQj.mjs").then((i) => i.LineHeightPlugin()),
|
|
2336
|
+
capitalization: () => import("./CapitalizationPlugin.native-DLV4oPmB.mjs").then((i) => i.CapitalizationPlugin()),
|
|
2337
|
+
history: () => import("./HistoryPlugin.native-D2wl32jV.mjs").then((i) => i.HistoryPlugin()),
|
|
2375
2338
|
// Advanced plugins (lazy loaded)
|
|
2376
|
-
link: () => import("./LinkPlugin.native-
|
|
2377
|
-
table: () => import("./TablePlugin.native-
|
|
2378
|
-
trackChanges: () => import("./TrackChangesPlugin.native-
|
|
2379
|
-
versionDiff: () => import("./VersionDiffPlugin.native-
|
|
2380
|
-
"version-diff": () => import("./VersionDiffPlugin.native-
|
|
2381
|
-
versiondiff: () => import("./VersionDiffPlugin.native-
|
|
2382
|
-
conditionalContent: () => import("./ConditionalContentPlugin.native-
|
|
2383
|
-
"conditional-content": () => import("./ConditionalContentPlugin.native-
|
|
2384
|
-
conditionalcontent: () => import("./ConditionalContentPlugin.native-
|
|
2385
|
-
dataBinding: () => import("./DataBindingPlugin.native-
|
|
2386
|
-
"data-binding": () => import("./DataBindingPlugin.native-
|
|
2387
|
-
databinding: () => import("./DataBindingPlugin.native-
|
|
2388
|
-
docSchema: () => import("./DocSchemaPlugin.native-
|
|
2389
|
-
"doc-schema": () => import("./DocSchemaPlugin.native-
|
|
2390
|
-
docschema: () => import("./DocSchemaPlugin.native-
|
|
2391
|
-
translationWorkflow: () => import("./TranslationWorkflowPlugin.native-
|
|
2392
|
-
"translation-workflow": () => import("./TranslationWorkflowPlugin.native-
|
|
2393
|
-
translationworkflow: () => import("./TranslationWorkflowPlugin.native-
|
|
2394
|
-
contentRules: () => import("./ContentRulesPlugin.native-
|
|
2395
|
-
"content-rules": () => import("./ContentRulesPlugin.native-
|
|
2396
|
-
contentrules: () => import("./ContentRulesPlugin.native-
|
|
2397
|
-
citations: () => import("./CitationsPlugin.native-
|
|
2398
|
-
citation: () => import("./CitationsPlugin.native-
|
|
2399
|
-
approvalWorkflow: () => import("./ApprovalWorkflowPlugin.native-
|
|
2400
|
-
"approval-workflow": () => import("./ApprovalWorkflowPlugin.native-
|
|
2401
|
-
approvalworkflow: () => import("./ApprovalWorkflowPlugin.native-
|
|
2402
|
-
piiRedaction: () => import("./PIIRedactionPlugin.native-
|
|
2403
|
-
"pii-redaction": () => import("./PIIRedactionPlugin.native-
|
|
2404
|
-
piiredaction: () => import("./PIIRedactionPlugin.native-
|
|
2405
|
-
smartPaste: () => import("./SmartPastePlugin.native-
|
|
2406
|
-
"smart-paste": () => import("./SmartPastePlugin.native-
|
|
2407
|
-
smartpaste: () => import("./SmartPastePlugin.native-
|
|
2408
|
-
blocksLibrary: () => import("./BlocksLibraryPlugin.native-
|
|
2409
|
-
"blocks-library": () => import("./BlocksLibraryPlugin.native-
|
|
2410
|
-
blockslibrary: () => import("./BlocksLibraryPlugin.native-
|
|
2411
|
-
mentions: () => import("./MentionPlugin.native-
|
|
2412
|
-
mention: () => import("./MentionPlugin.native-
|
|
2413
|
-
anchor: () => import("./AnchorPlugin.native-
|
|
2414
|
-
embedIframe: () => import("./EmbedIframePlugin.native-
|
|
2415
|
-
math: () => import("./MathPlugin.native-
|
|
2416
|
-
image: () => import("./MediaManagerPlugin.native-
|
|
2417
|
-
mergeTag: () => import("./MergeTagPlugin.native-
|
|
2418
|
-
pageBreak: () => import("./PageBreakPlugin.native-
|
|
2419
|
-
print: () => import("./PrintPlugin.native-
|
|
2420
|
-
preview: () => import("./PreviewPlugin.native-
|
|
2421
|
-
specialCharacters: () => import("./SpecialCharactersPlugin.native-
|
|
2422
|
-
slashCommands: () => import("./SlashCommandsPlugin.native-
|
|
2423
|
-
"slash-commands": () => import("./SlashCommandsPlugin.native-
|
|
2424
|
-
spellCheck: () => import("./SpellCheckPlugin.native-
|
|
2425
|
-
emojis: () => import("./EmojisPlugin.native-
|
|
2426
|
-
a11yChecker: () => import("./A11yCheckerPlugin.native-
|
|
2427
|
-
comments: () => import("./CommentsPlugin.native-
|
|
2428
|
-
"document-manager": () => import("./DocumentManagerPlugin.native-
|
|
2429
|
-
fullscreen: () => import("./FullscreenPlugin.native-
|
|
2430
|
-
template: () => import("./TemplatePlugin.native-
|
|
2431
|
-
footnote: () => import("./FootnotePlugin.native-
|
|
2339
|
+
link: () => import("./LinkPlugin.native-DYCIcdTm.mjs").then((i) => i.LinkPlugin()),
|
|
2340
|
+
table: () => import("./TablePlugin.native-DrHX-efe.mjs").then((i) => i.TablePlugin()),
|
|
2341
|
+
trackChanges: () => import("./TrackChangesPlugin.native-Bghu2q4a.mjs").then((i) => i.TrackChangesPlugin()),
|
|
2342
|
+
versionDiff: () => import("./VersionDiffPlugin.native-Bvxgy--t.mjs").then((i) => i.VersionDiffPlugin()),
|
|
2343
|
+
"version-diff": () => import("./VersionDiffPlugin.native-Bvxgy--t.mjs").then((i) => i.VersionDiffPlugin()),
|
|
2344
|
+
versiondiff: () => import("./VersionDiffPlugin.native-Bvxgy--t.mjs").then((i) => i.VersionDiffPlugin()),
|
|
2345
|
+
conditionalContent: () => import("./ConditionalContentPlugin.native-CfhY46rU.mjs").then((i) => i.ConditionalContentPlugin()),
|
|
2346
|
+
"conditional-content": () => import("./ConditionalContentPlugin.native-CfhY46rU.mjs").then((i) => i.ConditionalContentPlugin()),
|
|
2347
|
+
conditionalcontent: () => import("./ConditionalContentPlugin.native-CfhY46rU.mjs").then((i) => i.ConditionalContentPlugin()),
|
|
2348
|
+
dataBinding: () => import("./DataBindingPlugin.native-BoXwghTz.mjs").then((i) => i.DataBindingPlugin()),
|
|
2349
|
+
"data-binding": () => import("./DataBindingPlugin.native-BoXwghTz.mjs").then((i) => i.DataBindingPlugin()),
|
|
2350
|
+
databinding: () => import("./DataBindingPlugin.native-BoXwghTz.mjs").then((i) => i.DataBindingPlugin()),
|
|
2351
|
+
docSchema: () => import("./DocSchemaPlugin.native-DUSVRHqT.mjs").then((i) => i.DocSchemaPlugin()),
|
|
2352
|
+
"doc-schema": () => import("./DocSchemaPlugin.native-DUSVRHqT.mjs").then((i) => i.DocSchemaPlugin()),
|
|
2353
|
+
docschema: () => import("./DocSchemaPlugin.native-DUSVRHqT.mjs").then((i) => i.DocSchemaPlugin()),
|
|
2354
|
+
translationWorkflow: () => import("./TranslationWorkflowPlugin.native-DdF16tgT.mjs").then((i) => i.TranslationWorkflowPlugin()),
|
|
2355
|
+
"translation-workflow": () => import("./TranslationWorkflowPlugin.native-DdF16tgT.mjs").then((i) => i.TranslationWorkflowPlugin()),
|
|
2356
|
+
translationworkflow: () => import("./TranslationWorkflowPlugin.native-DdF16tgT.mjs").then((i) => i.TranslationWorkflowPlugin()),
|
|
2357
|
+
contentRules: () => import("./ContentRulesPlugin.native-vPx5nC73.mjs").then((i) => i.ContentRulesPlugin()),
|
|
2358
|
+
"content-rules": () => import("./ContentRulesPlugin.native-vPx5nC73.mjs").then((i) => i.ContentRulesPlugin()),
|
|
2359
|
+
contentrules: () => import("./ContentRulesPlugin.native-vPx5nC73.mjs").then((i) => i.ContentRulesPlugin()),
|
|
2360
|
+
citations: () => import("./CitationsPlugin.native-DQgoCd1B.mjs").then((i) => i.CitationsPlugin()),
|
|
2361
|
+
citation: () => import("./CitationsPlugin.native-DQgoCd1B.mjs").then((i) => i.CitationsPlugin()),
|
|
2362
|
+
approvalWorkflow: () => import("./ApprovalWorkflowPlugin.native-BZ6jO-Wj.mjs").then((i) => i.ApprovalWorkflowPlugin()),
|
|
2363
|
+
"approval-workflow": () => import("./ApprovalWorkflowPlugin.native-BZ6jO-Wj.mjs").then((i) => i.ApprovalWorkflowPlugin()),
|
|
2364
|
+
approvalworkflow: () => import("./ApprovalWorkflowPlugin.native-BZ6jO-Wj.mjs").then((i) => i.ApprovalWorkflowPlugin()),
|
|
2365
|
+
piiRedaction: () => import("./PIIRedactionPlugin.native-g7j4jOmm.mjs").then((i) => i.PIIRedactionPlugin()),
|
|
2366
|
+
"pii-redaction": () => import("./PIIRedactionPlugin.native-g7j4jOmm.mjs").then((i) => i.PIIRedactionPlugin()),
|
|
2367
|
+
piiredaction: () => import("./PIIRedactionPlugin.native-g7j4jOmm.mjs").then((i) => i.PIIRedactionPlugin()),
|
|
2368
|
+
smartPaste: () => import("./SmartPastePlugin.native-CZAEHkyt.mjs").then((i) => i.SmartPastePlugin()),
|
|
2369
|
+
"smart-paste": () => import("./SmartPastePlugin.native-CZAEHkyt.mjs").then((i) => i.SmartPastePlugin()),
|
|
2370
|
+
smartpaste: () => import("./SmartPastePlugin.native-CZAEHkyt.mjs").then((i) => i.SmartPastePlugin()),
|
|
2371
|
+
blocksLibrary: () => import("./BlocksLibraryPlugin.native-5sdsXsiE.mjs").then((i) => i.BlocksLibraryPlugin()),
|
|
2372
|
+
"blocks-library": () => import("./BlocksLibraryPlugin.native-5sdsXsiE.mjs").then((i) => i.BlocksLibraryPlugin()),
|
|
2373
|
+
blockslibrary: () => import("./BlocksLibraryPlugin.native-5sdsXsiE.mjs").then((i) => i.BlocksLibraryPlugin()),
|
|
2374
|
+
mentions: () => import("./MentionPlugin.native-BMDlOqur.mjs").then((i) => i.MentionPlugin()),
|
|
2375
|
+
mention: () => import("./MentionPlugin.native-BMDlOqur.mjs").then((i) => i.MentionPlugin()),
|
|
2376
|
+
anchor: () => import("./AnchorPlugin.native-BcYGEtd9.mjs").then((i) => i.AnchorPlugin()),
|
|
2377
|
+
embedIframe: () => import("./EmbedIframePlugin.native-BF_-LjTq.mjs").then((i) => i.EmbedIframePlugin()),
|
|
2378
|
+
math: () => import("./MathPlugin.native-NwWPHVmj.mjs").then((i) => i.MathPlugin()),
|
|
2379
|
+
image: () => import("./MediaManagerPlugin.native-eOsTJFpw.mjs").then((i) => i.MediaManagerPlugin()),
|
|
2380
|
+
mergeTag: () => import("./MergeTagPlugin.native-BzRVoD9-.mjs").then((i) => i.MergeTagPlugin()),
|
|
2381
|
+
pageBreak: () => import("./PageBreakPlugin.native-DijGuHJZ.mjs").then((i) => i.PageBreakPlugin()),
|
|
2382
|
+
print: () => import("./PrintPlugin.native-7qt5v7L5.mjs").then((i) => i.PrintPlugin()),
|
|
2383
|
+
preview: () => import("./PreviewPlugin.native-WuIwOAOR.mjs").then((i) => i.PreviewPlugin()),
|
|
2384
|
+
specialCharacters: () => import("./SpecialCharactersPlugin.native-DaG4b19I.mjs").then((i) => i.SpecialCharactersPlugin()),
|
|
2385
|
+
slashCommands: () => import("./SlashCommandsPlugin.native-BiN6ODw5.mjs").then((i) => i.SlashCommandsPlugin()),
|
|
2386
|
+
"slash-commands": () => import("./SlashCommandsPlugin.native-BiN6ODw5.mjs").then((i) => i.SlashCommandsPlugin()),
|
|
2387
|
+
spellCheck: () => import("./SpellCheckPlugin.native-BZB9AewP.mjs").then((i) => i.SpellCheckPlugin()),
|
|
2388
|
+
emojis: () => import("./EmojisPlugin.native-CitxxlWX.mjs").then((i) => i.EmojisPlugin()),
|
|
2389
|
+
a11yChecker: () => import("./A11yCheckerPlugin.native-BRdGYMju.mjs").then((i) => i.A11yCheckerPlugin()),
|
|
2390
|
+
comments: () => import("./CommentsPlugin.native-DPSqTkiv.mjs").then((i) => i.CommentsPlugin()),
|
|
2391
|
+
"document-manager": () => import("./DocumentManagerPlugin.native-C2cs_1w4.mjs").then((i) => i.DocumentManagerPlugin()),
|
|
2392
|
+
fullscreen: () => import("./FullscreenPlugin.native-ChXyxeNw.mjs").then((i) => i.FullscreenPlugin()),
|
|
2393
|
+
template: () => import("./TemplatePlugin.native-DLjFUaPW.mjs").then((i) => i.TemplatePlugin()),
|
|
2394
|
+
footnote: () => import("./FootnotePlugin.native-D730OGRm.mjs").then((i) => i.FootnotePlugin())
|
|
2432
2395
|
};
|
|
2433
|
-
async function
|
|
2434
|
-
return Object.entries(
|
|
2396
|
+
async function at() {
|
|
2397
|
+
return Object.entries(rt).forEach(([i, t]) => {
|
|
2435
2398
|
k.register(i, t);
|
|
2436
2399
|
}), k;
|
|
2437
2400
|
}
|
|
2438
|
-
typeof window != "undefined" &&
|
|
2401
|
+
typeof window != "undefined" && at().then((i) => {
|
|
2439
2402
|
g.__globalPluginLoader = i, customElements.get("editora-editor") || customElements.define("editora-editor", g);
|
|
2440
2403
|
const t = document.querySelectorAll("editora-editor:not([data-initial-content])"), e = [];
|
|
2441
2404
|
t.forEach((n) => {
|
|
@@ -2458,6 +2421,6 @@ typeof window != "undefined" && rt().then((i) => {
|
|
|
2458
2421
|
});
|
|
2459
2422
|
export {
|
|
2460
2423
|
g as RichTextEditorElement,
|
|
2461
|
-
|
|
2424
|
+
at as initWebComponent
|
|
2462
2425
|
};
|
|
2463
2426
|
//# sourceMappingURL=webcomponent.js.map
|