@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
|
@@ -1,4 +1,5 @@
|
|
|
1
|
-
|
|
1
|
+
import { a as n } from "./inlineFormatting-DJ0-NZtx.mjs";
|
|
2
|
+
const a = () => ({
|
|
2
3
|
name: "underline",
|
|
3
4
|
// Schema definition for underline mark
|
|
4
5
|
marks: {
|
|
@@ -21,7 +22,10 @@ const e = () => ({
|
|
|
21
22
|
/**
|
|
22
23
|
* Toggle underline formatting on current selection
|
|
23
24
|
*/
|
|
24
|
-
toggleUnderline: () => (
|
|
25
|
+
toggleUnderline: (l, e) => n({
|
|
26
|
+
command: "underline",
|
|
27
|
+
context: e
|
|
28
|
+
})
|
|
25
29
|
},
|
|
26
30
|
// Keyboard shortcuts
|
|
27
31
|
keymap: {
|
|
@@ -30,6 +34,6 @@ const e = () => ({
|
|
|
30
34
|
}
|
|
31
35
|
});
|
|
32
36
|
export {
|
|
33
|
-
|
|
37
|
+
a as UnderlinePlugin
|
|
34
38
|
};
|
|
35
|
-
//# sourceMappingURL=UnderlinePlugin.native-
|
|
39
|
+
//# sourceMappingURL=UnderlinePlugin.native-DZzg23rv.mjs.map
|
package/dist/{VersionDiffPlugin.native-5bbeff85.mjs → VersionDiffPlugin.native-Bvxgy--t.mjs}
RENAMED
|
@@ -24,29 +24,23 @@ function de(e) {
|
|
|
24
24
|
};
|
|
25
25
|
}
|
|
26
26
|
function N(e, i = !0) {
|
|
27
|
-
if ((e == null ? void 0 : e.contentElement) instanceof HTMLElement)
|
|
28
|
-
return e.contentElement;
|
|
27
|
+
if ((e == null ? void 0 : e.contentElement) instanceof HTMLElement) return e.contentElement;
|
|
29
28
|
if ((e == null ? void 0 : e.editorElement) instanceof HTMLElement) {
|
|
30
29
|
const r = e.editorElement;
|
|
31
|
-
if (r.matches($))
|
|
32
|
-
return r;
|
|
30
|
+
if (r.matches($)) return r;
|
|
33
31
|
const o = r.querySelector($);
|
|
34
|
-
if (o instanceof HTMLElement)
|
|
35
|
-
return o;
|
|
32
|
+
if (o instanceof HTMLElement) return o;
|
|
36
33
|
}
|
|
37
34
|
const t = window.getSelection();
|
|
38
35
|
if (t && t.rangeCount > 0) {
|
|
39
36
|
const r = t.getRangeAt(0).startContainer, o = r.nodeType === Node.ELEMENT_NODE ? r : r.parentElement, f = o == null ? void 0 : o.closest($);
|
|
40
|
-
if (f)
|
|
41
|
-
return f;
|
|
37
|
+
if (f) return f;
|
|
42
38
|
}
|
|
43
39
|
const n = document.activeElement;
|
|
44
40
|
if (n) {
|
|
45
|
-
if (n.matches($))
|
|
46
|
-
return n;
|
|
41
|
+
if (n.matches($)) return n;
|
|
47
42
|
const r = n.closest($);
|
|
48
|
-
if (r)
|
|
49
|
-
return r;
|
|
43
|
+
if (r) return r;
|
|
50
44
|
}
|
|
51
45
|
return D && D.isConnected ? D : i ? document.querySelector($) : null;
|
|
52
46
|
}
|
|
@@ -54,18 +48,15 @@ function O(e) {
|
|
|
54
48
|
return e.closest("[data-editora-editor], .rte-editor, .editora-editor, editora-editor") || e;
|
|
55
49
|
}
|
|
56
50
|
function P(e) {
|
|
57
|
-
if (!e)
|
|
58
|
-
return !1;
|
|
51
|
+
if (!e) return !1;
|
|
59
52
|
const i = e.getAttribute("data-theme") || e.getAttribute("theme");
|
|
60
|
-
if (i && i.toLowerCase() === "dark")
|
|
61
|
-
return !0;
|
|
53
|
+
if (i && i.toLowerCase() === "dark") return !0;
|
|
62
54
|
const t = e.classList;
|
|
63
55
|
return t.contains("dark") || t.contains("editora-theme-dark") || t.contains("rte-theme-dark");
|
|
64
56
|
}
|
|
65
57
|
function Q(e) {
|
|
66
58
|
const i = O(e);
|
|
67
|
-
if (P(i))
|
|
68
|
-
return !0;
|
|
59
|
+
if (P(i)) return !0;
|
|
69
60
|
const t = i.closest("[data-theme], [theme], .dark, .editora-theme-dark, .rte-theme-dark");
|
|
70
61
|
return !!(P(t) || P(document.documentElement) || P(document.body));
|
|
71
62
|
}
|
|
@@ -95,8 +86,7 @@ function Z(e, i, t) {
|
|
|
95
86
|
let n = te(e);
|
|
96
87
|
if (t && (n = n.replace(/[ \t]+/g, " ").replace(/\n{3,}/g, `
|
|
97
88
|
|
|
98
|
-
`).trim()), !n)
|
|
99
|
-
return [];
|
|
89
|
+
`).trim()), !n) return [];
|
|
100
90
|
if (i === "line")
|
|
101
91
|
return n.split(`
|
|
102
92
|
`);
|
|
@@ -111,13 +101,10 @@ function Z(e, i, t) {
|
|
|
111
101
|
}), r;
|
|
112
102
|
}
|
|
113
103
|
function ue(e, i, t) {
|
|
114
|
-
if (e.length === 0)
|
|
115
|
-
|
|
116
|
-
if (i === "line")
|
|
117
|
-
return e.join(`
|
|
104
|
+
if (e.length === 0) return "";
|
|
105
|
+
if (i === "line") return e.join(`
|
|
118
106
|
`);
|
|
119
|
-
if (t)
|
|
120
|
-
return e.join(" ");
|
|
107
|
+
if (t) return e.join(" ");
|
|
121
108
|
let n = "";
|
|
122
109
|
for (let r = 0; r < e.length; r += 1) {
|
|
123
110
|
const o = e[r];
|
|
@@ -228,8 +215,7 @@ function ge(e) {
|
|
|
228
215
|
return o || f;
|
|
229
216
|
}
|
|
230
217
|
function ye() {
|
|
231
|
-
if (typeof document == "undefined" || document.getElementById(J))
|
|
232
|
-
return;
|
|
218
|
+
if (typeof document == "undefined" || document.getElementById(J)) return;
|
|
233
219
|
const e = document.createElement("style");
|
|
234
220
|
e.id = J, e.textContent = `
|
|
235
221
|
.${l} {
|
|
@@ -531,18 +517,14 @@ function ye() {
|
|
|
531
517
|
`, document.head.appendChild(e);
|
|
532
518
|
}
|
|
533
519
|
async function ke(e, i, t) {
|
|
534
|
-
if (t != null)
|
|
535
|
-
return t;
|
|
520
|
+
if (t != null) return t;
|
|
536
521
|
if (typeof i.getBaselineHtml == "function") {
|
|
537
522
|
const o = O(e), f = await Promise.resolve(i.getBaselineHtml({ editor: e, editorRoot: o }));
|
|
538
|
-
if (typeof f == "string")
|
|
539
|
-
return f;
|
|
523
|
+
if (typeof f == "string") return f;
|
|
540
524
|
}
|
|
541
525
|
const n = w.get(e);
|
|
542
|
-
if (typeof n == "string")
|
|
543
|
-
|
|
544
|
-
if (typeof i.baselineHtml == "string")
|
|
545
|
-
return i.baselineHtml;
|
|
526
|
+
if (typeof n == "string") return n;
|
|
527
|
+
if (typeof i.baselineHtml == "string") return i.baselineHtml;
|
|
546
528
|
const r = W(e);
|
|
547
529
|
return w.set(e, r), r;
|
|
548
530
|
}
|
|
@@ -553,13 +535,11 @@ function xe(e) {
|
|
|
553
535
|
i == null || i.focus();
|
|
554
536
|
}
|
|
555
537
|
function $e(e, i) {
|
|
556
|
-
if (e.key !== "Tab")
|
|
557
|
-
return;
|
|
538
|
+
if (e.key !== "Tab") return;
|
|
558
539
|
const t = Array.from(i.querySelectorAll(
|
|
559
540
|
'button:not([disabled]), select:not([disabled]), input:not([disabled]), textarea:not([disabled]), [tabindex]:not([tabindex="-1"])'
|
|
560
541
|
)).filter((f) => !f.hasAttribute("disabled"));
|
|
561
|
-
if (t.length === 0)
|
|
562
|
-
return;
|
|
542
|
+
if (t.length === 0) return;
|
|
563
543
|
const n = t[0], r = t[t.length - 1], o = document.activeElement;
|
|
564
544
|
e.shiftKey && o === n ? (e.preventDefault(), r.focus()) : !e.shiftKey && o === r && (e.preventDefault(), n.focus());
|
|
565
545
|
}
|
|
@@ -659,8 +639,7 @@ function ie(e, i, t) {
|
|
|
659
639
|
} catch (Se) {
|
|
660
640
|
E = (Y = w.get(e)) != null ? Y : W(e);
|
|
661
641
|
}
|
|
662
|
-
if (v !== L || !n.isConnected)
|
|
663
|
-
return;
|
|
642
|
+
if (v !== L || !n.isConnected) return;
|
|
664
643
|
const oe = X(E), se = X(y), ae = Z(oe, f, g), le = Z(se, f, g), C = he(
|
|
665
644
|
ae,
|
|
666
645
|
le,
|
|
@@ -724,18 +703,15 @@ function ie(e, i, t) {
|
|
|
724
703
|
}
|
|
725
704
|
function we(e) {
|
|
726
705
|
V = e, !H && (H = (i) => {
|
|
727
|
-
if (!ge(i))
|
|
728
|
-
return;
|
|
706
|
+
if (!ge(i)) return;
|
|
729
707
|
if (document.querySelector(`.${l}`)) {
|
|
730
708
|
i.preventDefault();
|
|
731
709
|
return;
|
|
732
710
|
}
|
|
733
711
|
const t = i.target;
|
|
734
|
-
if (!!(t != null && t.closest("input, textarea, select")))
|
|
735
|
-
return;
|
|
712
|
+
if (!!(t != null && t.closest("input, textarea, select"))) return;
|
|
736
713
|
const r = N(void 0, !1);
|
|
737
|
-
if (!r || r.getAttribute("contenteditable") === "false")
|
|
738
|
-
return;
|
|
714
|
+
if (!r || r.getAttribute("contenteditable") === "false") return;
|
|
739
715
|
i.preventDefault(), i.stopPropagation();
|
|
740
716
|
const o = R.get(r) || V || e;
|
|
741
717
|
ie(r, o);
|
|
@@ -775,8 +751,7 @@ const Me = (e = {}) => {
|
|
|
775
751
|
},
|
|
776
752
|
setVersionDiffBaseline: (t, n) => {
|
|
777
753
|
const r = N(n);
|
|
778
|
-
if (!r)
|
|
779
|
-
return !1;
|
|
754
|
+
if (!r) return !1;
|
|
780
755
|
R.set(r, i);
|
|
781
756
|
const o = typeof t == "string" ? t : typeof (t == null ? void 0 : t.html) == "string" ? t.html : r.innerHTML;
|
|
782
757
|
return w.set(r, o), !0;
|
|
@@ -798,4 +773,4 @@ const Me = (e = {}) => {
|
|
|
798
773
|
export {
|
|
799
774
|
Me as VersionDiffPlugin
|
|
800
775
|
};
|
|
801
|
-
//# sourceMappingURL=VersionDiffPlugin.native-
|
|
776
|
+
//# sourceMappingURL=VersionDiffPlugin.native-Bvxgy--t.mjs.map
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
function c(e) {
|
|
2
|
+
return e && e.__esModule && Object.prototype.hasOwnProperty.call(e, "default") ? e.default : e;
|
|
3
|
+
}
|
|
4
|
+
function a(e) {
|
|
5
|
+
if (Object.prototype.hasOwnProperty.call(e, "__esModule")) return e;
|
|
6
|
+
var n = e.default;
|
|
7
|
+
if (typeof n == "function") {
|
|
8
|
+
var t = function r() {
|
|
9
|
+
var o = !1;
|
|
10
|
+
try {
|
|
11
|
+
o = this instanceof r;
|
|
12
|
+
} catch (u) {
|
|
13
|
+
}
|
|
14
|
+
return o ? Reflect.construct(n, arguments, this.constructor) : n.apply(this, arguments);
|
|
15
|
+
};
|
|
16
|
+
t.prototype = n.prototype;
|
|
17
|
+
} else t = {};
|
|
18
|
+
return Object.defineProperty(t, "__esModule", { value: !0 }), Object.keys(e).forEach(function(r) {
|
|
19
|
+
var o = Object.getOwnPropertyDescriptor(e, r);
|
|
20
|
+
Object.defineProperty(t, r, o.get ? o : {
|
|
21
|
+
enumerable: !0,
|
|
22
|
+
get: function() {
|
|
23
|
+
return e[r];
|
|
24
|
+
}
|
|
25
|
+
});
|
|
26
|
+
}), t;
|
|
27
|
+
}
|
|
28
|
+
export {
|
|
29
|
+
c as a,
|
|
30
|
+
a as g
|
|
31
|
+
};
|
|
32
|
+
//# sourceMappingURL=_commonjsHelpers-DOllISpa.mjs.map
|
package/dist/core.css
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
.rte-table,table{border-collapse:collapse;width:100%;margin:1rem 0;border:1px solid #ddd;font-size:14px;line-height:1.4;position:relative}.rte-table td,.rte-table th,table td,table th{border:1px solid #ddd;padding:8px 12px;min-width:80px;vertical-align:top;position:relative;user-select:none}.rte-table td:focus,.rte-table th:focus,table td:focus,table th:focus{outline:2px solid #007acc;outline-offset:-2px}.rte-table th,table th{background-color:#f8f9fa;font-weight:600;text-align:left}.rte-table td p,table td p{margin:0;padding:0}.rte-table td p:empty:before,table td p:empty:before{content:"";display:inline-block}.rte-table td[contenteditable]:empty:before,table td[contenteditable]:empty:before{content:"Type here...";color:#999;font-style:italic;pointer-events:none}.rte-table tr:hover,table tr:hover{background-color:#f8f9fa}.rte-table td.selected,table td.selected{background-color:#e3f2fd;border-color:#2196f3}.table-toolbar{background:#fff;border:1px solid #d0d0d0;border-radius:4px;box-shadow:0 2px 8px #0000001a;padding:4px;display:flex;align-items:center;gap:0;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Oxygen,Ubuntu,Cantarell,sans-serif;min-width:max-content}.toolbar-section{display:flex;align-items:center;gap:2px}.toolbar-divider{width:1px;height:20px;background:#e0e0e0;margin:0 4px}.toolbar-icon-btn{display:flex;align-items:center;justify-content:center;width:28px;height:28px;padding:0;border:1px solid transparent;background:transparent;cursor:pointer;color:#333;border-radius:3px;transition:all .2s ease;flex-shrink:0;font-size:14px;line-height:1}.toolbar-icon-btn svg{width:16px;height:16px}.toolbar-icon-btn:hover:not(:disabled){background:#f0f0f0;border-color:#d0d0d0;color:#06c}.toolbar-icon-btn:active:not(:disabled){background:#e8f0ff;border-color:#06c;transform:scale(.95)}.toolbar-icon-btn:disabled{opacity:.4;cursor:not-allowed;color:#ccc}.toolbar-icon-btn-danger{color:#d32f2f}.toolbar-icon-btn-danger:hover:not(:disabled){background:#fff3f3;border-color:#fcc;color:#d32f2f}.toolbar-icon-btn-danger:active:not(:disabled){background:#ffebee}.toolbar-icon-btn-delete{color:#d32f2f}.toolbar-icon-btn-delete:hover:not(:disabled){background:#fff3f3;border-color:#fcc;color:#d32f2f}.toolbar-icon-btn-delete:active:not(:disabled){background:#ffebee}.resize-handle{opacity:0;transition:all .15s ease}.resize-handle:hover{opacity:1}td:hover>.resize-handle,th:hover>.resize-handle{opacity:1}.table-resize-handle{position:absolute;bottom:-4px;right:-4px;width:12px;height:12px;background:transparent;cursor:nwse-resize;z-index:10;transition:background .15s ease}.table-resize-handle:after{content:"";position:absolute;bottom:0;right:0;width:8px;height:8px;background:#0066cc4d;border-bottom:2px solid #0066cc;border-right:2px solid #0066cc;border-radius:0 0 2px;opacity:0;transition:opacity .15s ease}.table-resize-handle:hover:after{opacity:1}.rte-table:hover .table-resize-handle:after,table:hover .table-resize-handle:after{opacity:1}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table,table){border-color:#607088;background:#24303c;color:#e6eefb}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table td,.rte-table th,table td,table th){border-color:#607088;color:#e6eefb}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table th,table th){background:linear-gradient(180deg,#3b4553,#333d4a);color:#f3f8ff}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table tr:hover,table tr:hover){background-color:#58a6ff1f}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table td.selected,table td.selected){background-color:#58a6ff47;border-color:#79beff}:is([data-theme=dark],.dark,.editora-theme-dark) :is(.rte-table td[contenteditable]:empty:before,table td[contenteditable]:empty:before){color:#94a3b8}:is([data-theme=dark],.dark,.editora-theme-dark) .table-toolbar{background:linear-gradient(180deg,#2f3844,#2a323c);border-color:#4d596b;box-shadow:0 8px 20px #00000073}.table-toolbar.rte-theme-dark{background:linear-gradient(180deg,#2f3844,#2a323c);border-color:#4d596b;box-shadow:0 8px 20px #00000073}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-divider{background:#4d596b}.table-toolbar.rte-theme-dark .toolbar-divider{background:#4d596b}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn{color:#d7deea;border-color:transparent}.table-toolbar.rte-theme-dark .toolbar-icon-btn{color:#d7deea;border-color:transparent}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg{color:currentColor;fill:currentColor}.table-toolbar.rte-theme-dark .toolbar-icon-btn svg{color:currentColor;fill:currentColor}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [stroke="#000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [stroke="#000000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [stroke=black i]{stroke:currentColor!important}.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [stroke="#000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [stroke="#000000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [stroke=black i]{stroke:currentColor!important}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [fill="#000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [fill="#000000" i],:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn svg [fill=black i]{fill:currentColor!important}.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [fill="#000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [fill="#000000" i],.table-toolbar.rte-theme-dark .toolbar-icon-btn svg [fill=black i]{fill:currentColor!important}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn:hover:not(:disabled){background:#3a4554;border-color:#607088;color:#f3f8ff}.table-toolbar.rte-theme-dark .toolbar-icon-btn:hover:not(:disabled){background:#3a4554;border-color:#607088;color:#f3f8ff}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn:active:not(:disabled){background:#4a95de;border-color:#67adf4;color:#0f1b2a}.table-toolbar.rte-theme-dark .toolbar-icon-btn:active:not(:disabled){background:#4a95de;border-color:#67adf4;color:#0f1b2a}:is([data-theme=dark],.dark,.editora-theme-dark) .toolbar-icon-btn:disabled{color:#7f8ca1}.table-toolbar.rte-theme-dark .toolbar-icon-btn:disabled{color:#7f8ca1}@media(max-width:768px){.rte-table,table{font-size:12px}.rte-table td,.rte-table th,table td,table th{padding:4px 6px;min-width:60px}.table-toolbar{padding:3px;gap:0;max-width:90vw;overflow-x:auto}.toolbar-icon-btn{width:26px;height:26px}.toolbar-divider{height:18px}}@media print{.rte-table,table{border:1px solid #000}.rte-table td,.rte-table th,table td,table th{border:1px solid #000;padding:4px}.table-toolbar{display:none}}
|