@editora/core 1.0.18 → 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.
- package/dist/{A11yCheckerPlugin.native-DIKuCeFw.mjs → A11yCheckerPlugin.native-qW_njhLY.mjs} +2 -2
- package/dist/{AnchorPlugin.native-DXZdK3zr.mjs → AnchorPlugin.native-Drmxhy98.mjs} +37 -37
- package/dist/{BlockquotePlugin.native-57_Xcjl1.mjs → BlockquotePlugin.native-D8jjGd0c.mjs} +19 -19
- package/dist/{CapitalizationPlugin.native-C-HRbXGh.mjs → CapitalizationPlugin.native-Mh-kUy-x.mjs} +17 -17
- package/dist/{ChecklistPlugin.native-NVrBUkaL.mjs → ChecklistPlugin.native-DLedNLsb.mjs} +31 -31
- package/dist/{CodePlugin.native-BH-K4xmW.mjs → CodePlugin.native-BcVqm5MS.mjs} +64 -65
- package/dist/{CodePlugin.native-hNgfXlfS.mjs → CodePlugin.native-Rgxx2Igx.mjs} +2708 -1225
- package/dist/{CollaborationPlugin.native-oSybCGPW.mjs → CollaborationPlugin.native-Bl3R9CRI.mjs} +1406 -1295
- package/dist/{CommentsPlugin.native-CLip9wAO.mjs → CommentsPlugin.native-DncTHiEe.mjs} +2 -2
- package/dist/{DirectionPlugin.native-Bl-QLFzO.mjs → DirectionPlugin.native-B-Zj-EAt.mjs} +33 -33
- package/dist/{DocumentManagerPlugin.native-iFip6s4Q.mjs → DocumentManagerPlugin.native-B8K-Oqom.mjs} +12 -11
- package/dist/{FontFamilyPlugin.native-M3cNQ0KA.mjs → FontFamilyPlugin.native-DLq9x046.mjs} +32 -32
- package/dist/{PreviewPlugin.native-CiR51jql.mjs → PreviewPlugin.native-Dv5OsffK.mjs} +49 -52
- package/dist/{SpellCheckPlugin.native-Bef2oTLB.mjs → SpellCheckPlugin.native-BGm2qPfn.mjs} +20 -20
- package/dist/{TablePlugin.native-BjIxYZ2X.mjs → TablePlugin.native-C1YZ372P.mjs} +156 -147
- package/dist/TemplatePlugin.native-Dwk8TgxI.mjs +628 -0
- package/dist/{documentManager-BcBIv5P-.mjs → documentManager-BWK_-KJp.mjs} +524 -526
- package/dist/editora.min.js +17 -17
- package/dist/editora.umd.js +17 -17
- package/dist/{index-XsYC_KdJ.mjs → index-BxlbmLsp.mjs} +428 -405
- package/dist/index-Cdy6TOCy.js +12 -0
- package/dist/index.cjs.js +4 -4
- package/dist/index.esm.js +19 -16
- package/dist/plugin-loader.js +13 -13
- package/dist/purify.es-BHa5gZB7.mjs +1481 -0
- package/dist/sanitizeHtml-DA0ajC6k.mjs +17 -0
- package/dist/webcomponent-core.js +466 -449
- package/dist/webcomponent-core.min.js +91 -89
- package/dist/webcomponent.cjs.js +1 -1
- package/dist/webcomponent.esm.js +2 -2
- package/dist/webcomponent.js +397 -380
- package/dist/webcomponent.min.js +968 -967
- package/index.d.ts +9 -0
- package/package.json +1 -1
- package/dist/TemplatePlugin.native-D6n5RUnC.mjs +0 -1176
- package/dist/index-_eKRBZPq.js +0 -12
|
@@ -10515,7 +10515,7 @@ function C() {
|
|
|
10515
10515
|
function h() {
|
|
10516
10516
|
if (l && document.contains(l))
|
|
10517
10517
|
return l;
|
|
10518
|
-
const e =
|
|
10518
|
+
const e = J();
|
|
10519
10519
|
return e && (l = e), e;
|
|
10520
10520
|
}
|
|
10521
10521
|
function W(e) {
|
|
@@ -10550,7 +10550,7 @@ function te() {
|
|
|
10550
10550
|
const t = u;
|
|
10551
10551
|
return u = null, l = t, t;
|
|
10552
10552
|
}
|
|
10553
|
-
return
|
|
10553
|
+
return J();
|
|
10554
10554
|
}
|
|
10555
10555
|
function ie() {
|
|
10556
10556
|
f += 1, f === 1 && d && d.disconnect();
|
|
@@ -10629,7 +10629,7 @@ function de(e) {
|
|
|
10629
10629
|
}
|
|
10630
10630
|
return t;
|
|
10631
10631
|
}
|
|
10632
|
-
const
|
|
10632
|
+
const J = () => {
|
|
10633
10633
|
const e = P();
|
|
10634
10634
|
if (e && document.contains(e))
|
|
10635
10635
|
return l = e, e;
|
|
@@ -10722,10 +10722,10 @@ function pe(e, t) {
|
|
|
10722
10722
|
r.deleteContents(), r.insertNode(i);
|
|
10723
10723
|
});
|
|
10724
10724
|
}
|
|
10725
|
-
function
|
|
10725
|
+
function U(e) {
|
|
10726
10726
|
q.add(e.toLowerCase()), E(), g();
|
|
10727
10727
|
}
|
|
10728
|
-
function
|
|
10728
|
+
function Y(e) {
|
|
10729
10729
|
z.add(e.toLowerCase()), se(), E(), g();
|
|
10730
10730
|
}
|
|
10731
10731
|
function ue(e) {
|
|
@@ -10766,14 +10766,14 @@ function he(e, t, r, i, a) {
|
|
|
10766
10766
|
}, s.appendChild(n);
|
|
10767
10767
|
const c = document.createElement("div");
|
|
10768
10768
|
c.className = "rte-spellcheck-menu-item meta", c.textContent = "Ignore All", c.onclick = () => {
|
|
10769
|
-
|
|
10769
|
+
U(r), s.remove();
|
|
10770
10770
|
}, s.appendChild(c);
|
|
10771
10771
|
const k = document.createElement("div");
|
|
10772
10772
|
k.className = "rte-spellcheck-menu-item positive", k.textContent = "Add to Dictionary", k.onclick = () => {
|
|
10773
|
-
|
|
10773
|
+
Y(r), s.remove();
|
|
10774
10774
|
}, s.appendChild(k), document.body.appendChild(s);
|
|
10775
|
-
const A = s.getBoundingClientRect(),
|
|
10776
|
-
s.style.left = `${Math.max(8, Math.min(e,
|
|
10775
|
+
const A = s.getBoundingClientRect(), Z = window.innerWidth - A.width - 8, G = window.innerHeight - A.height - 8;
|
|
10776
|
+
s.style.left = `${Math.max(8, Math.min(e, Z))}px`, s.style.top = `${Math.max(8, Math.min(t, G))}px`;
|
|
10777
10777
|
const M = (p) => {
|
|
10778
10778
|
s.contains(p.target) || (s.remove(), document.removeEventListener("mousedown", M));
|
|
10779
10779
|
};
|
|
@@ -10795,7 +10795,7 @@ function be() {
|
|
|
10795
10795
|
function fe(e) {
|
|
10796
10796
|
return e.closest("[data-editora-editor]") || e.parentElement || e;
|
|
10797
10797
|
}
|
|
10798
|
-
function
|
|
10798
|
+
function I() {
|
|
10799
10799
|
const e = h();
|
|
10800
10800
|
if (!e)
|
|
10801
10801
|
throw new Error("Spell check panel requested without active editor");
|
|
@@ -10868,17 +10868,17 @@ function j(e) {
|
|
|
10868
10868
|
a.addEventListener("click", () => {
|
|
10869
10869
|
var n;
|
|
10870
10870
|
const s = (n = a.closest(".rte-spellcheck-item")) == null ? void 0 : n.getAttribute("data-word");
|
|
10871
|
-
s &&
|
|
10871
|
+
s && U(s);
|
|
10872
10872
|
});
|
|
10873
10873
|
}), o.querySelectorAll(".add-btn").forEach((a) => {
|
|
10874
10874
|
a.addEventListener("click", () => {
|
|
10875
10875
|
var n;
|
|
10876
10876
|
const s = (n = a.closest(".rte-spellcheck-item")) == null ? void 0 : n.getAttribute("data-word");
|
|
10877
|
-
s &&
|
|
10877
|
+
s && Y(s);
|
|
10878
10878
|
});
|
|
10879
10879
|
});
|
|
10880
10880
|
}
|
|
10881
|
-
function
|
|
10881
|
+
function _() {
|
|
10882
10882
|
const e = h();
|
|
10883
10883
|
e && (d && d.disconnect(), d = new MutationObserver((t) => {
|
|
10884
10884
|
f > 0 || t.some((r) => r.type === "characterData" || r.type === "childList") && (b && clearTimeout(b), b = window.setTimeout(() => {
|
|
@@ -10888,13 +10888,13 @@ function R() {
|
|
|
10888
10888
|
...B
|
|
10889
10889
|
}));
|
|
10890
10890
|
}
|
|
10891
|
-
function
|
|
10891
|
+
function V() {
|
|
10892
10892
|
d && (d.disconnect(), d = null), b && (clearTimeout(b), b = null);
|
|
10893
10893
|
}
|
|
10894
|
-
function
|
|
10894
|
+
function X() {
|
|
10895
10895
|
document.querySelectorAll(".rte-spellcheck-menu").forEach((e) => e.remove());
|
|
10896
10896
|
}
|
|
10897
|
-
function
|
|
10897
|
+
function R() {
|
|
10898
10898
|
y || (y = (e) => {
|
|
10899
10899
|
e.key !== "Escape" || !m || (e.preventDefault(), e.stopPropagation(), N());
|
|
10900
10900
|
}, document.addEventListener("keydown", y, !0));
|
|
@@ -10903,11 +10903,11 @@ function ye() {
|
|
|
10903
10903
|
y && (document.removeEventListener("keydown", y, !0), y = null);
|
|
10904
10904
|
}
|
|
10905
10905
|
function N() {
|
|
10906
|
-
return m && (E(),
|
|
10906
|
+
return m && (E(), V(), be(), X(), o && (o.remove(), o = null), l = null, u = null, m = !1, ye()), !1;
|
|
10907
10907
|
}
|
|
10908
10908
|
function ve() {
|
|
10909
10909
|
const e = te();
|
|
10910
|
-
return e ? m && l && l !== e ? (E(),
|
|
10910
|
+
return e ? m && l && l !== e ? (E(), V(), X(), o && (o.remove(), o = null), l = e, C(), H(), R(), g(), _(), o = I(), j(), !0) : m ? N() : (l = e, m = !0, C(), H(), R(), g(), _(), o && (o.remove(), o = null), o = I(), j(), !0) : !1;
|
|
10911
10911
|
}
|
|
10912
10912
|
const ke = () => ({
|
|
10913
10913
|
name: "spellCheck",
|
|
@@ -10918,7 +10918,7 @@ const ke = () => ({
|
|
|
10918
10918
|
{
|
|
10919
10919
|
label: "Spell Check",
|
|
10920
10920
|
command: "toggleSpellCheck",
|
|
10921
|
-
icon: '<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g
|
|
10921
|
+
icon: '<svg width="24px" height="24px" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><g stroke-width="0"></g><g stroke-linecap="round" stroke-linejoin="round"></g><g> <path d="M3 12.5L3.84375 9.5M3.84375 9.5L5 5.38889C5 5.38889 5.25 4.5 6 4.5C6.75 4.5 7 5.38889 7 5.38889L8.15625 9.5M3.84375 9.5H8.15625M9 12.5L8.15625 9.5M13 16.8333L15.4615 19.5L21 13.5M12 8.5H15C16.1046 8.5 17 7.60457 17 6.5C17 5.39543 16.1046 4.5 15 4.5H12V8.5ZM12 8.5H16C17.1046 8.5 18 9.39543 18 10.5C18 11.6046 17.1046 12.5 16 12.5H12V8.5Z" stroke="#000000" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"></path> </g></svg>',
|
|
10922
10922
|
shortcut: "F7"
|
|
10923
10923
|
}
|
|
10924
10924
|
],
|
|
@@ -10932,4 +10932,4 @@ const ke = () => ({
|
|
|
10932
10932
|
export {
|
|
10933
10933
|
ke as SpellCheckPlugin
|
|
10934
10934
|
};
|
|
10935
|
-
//# sourceMappingURL=SpellCheckPlugin.native-
|
|
10935
|
+
//# sourceMappingURL=SpellCheckPlugin.native-BGm2qPfn.mjs.map
|