@editora/plugins 1.0.10 → 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/dist/_commonjsHelpers-BH3jXuIh.js +1 -0
- package/dist/_commonjsHelpers-ByX85dGu.mjs +33 -0
- package/dist/a11y-checker.cjs.js +12 -12
- package/dist/a11y-checker.esm.js +80 -98
- package/dist/anchor.cjs.js +12 -12
- package/dist/anchor.esm.js +115 -128
- package/dist/anchoredPopover-BzqGPOAE.js +1 -0
- package/dist/anchoredPopover-Dts0IrgU.mjs +106 -0
- package/dist/approval-workflow.cjs.js +40 -40
- package/dist/approval-workflow.esm.js +208 -249
- package/dist/background-color.cjs.js +2 -2
- package/dist/background-color.esm.js +55 -68
- package/dist/blockquote.esm.js +1 -2
- package/dist/blocks-library.cjs.js +45 -45
- package/dist/blocks-library.esm.js +178 -245
- package/dist/capitalization.esm.js +1 -2
- package/dist/checklist.cjs.js +1 -1
- package/dist/checklist.esm.js +58 -82
- package/dist/citations.cjs.js +37 -37
- package/dist/citations.esm.js +439 -512
- package/dist/clear-formatting.cjs.js +1 -1
- package/dist/clear-formatting.esm.js +27 -33
- package/dist/code-sample.cjs.js +14 -14
- package/dist/code-sample.esm.js +82 -93
- package/dist/code.cjs.js +32 -32
- package/dist/code.esm.js +501 -506
- package/dist/comments.cjs.js +6 -6
- package/dist/comments.esm.js +116 -158
- package/dist/conditional-content.cjs.js +90 -90
- package/dist/conditional-content.esm.js +371 -432
- package/dist/content-rules.cjs.js +7 -7
- package/dist/content-rules.esm.js +105 -159
- package/dist/data-binding.cjs.js +46 -46
- package/dist/data-binding.esm.js +328 -368
- package/dist/direction.esm.js +9 -18
- package/dist/doc-schema.cjs.js +29 -29
- package/dist/doc-schema.esm.js +240 -308
- package/dist/document-manager.cjs.js +1 -1
- package/dist/document-manager.esm.js +4 -5
- package/dist/documentManager-CTqRftU8.mjs +8369 -0
- package/dist/documentManager-Jf0RbSks.js +17 -0
- package/dist/{editorContainerHelpers-69585c07.mjs → editorContainerHelpers-C7kdWnS0.mjs} +1 -2
- package/dist/embed-iframe.cjs.js +4 -4
- package/dist/embed-iframe.esm.js +73 -81
- package/dist/emojis.cjs.js +8 -8
- package/dist/emojis.esm.js +65 -77
- package/dist/enterprise.cjs.js +1 -1
- package/dist/enterprise.esm.js +54 -56
- package/dist/font-family.cjs.js +1 -1
- package/dist/font-family.esm.js +39 -47
- package/dist/font-size.cjs.js +1 -1
- package/dist/font-size.esm.js +37 -53
- package/dist/footnote.cjs.js +2 -2
- package/dist/footnote.esm.js +76 -117
- package/dist/history.cjs.js +1 -1
- package/dist/history.esm.js +70 -92
- package/dist/html2canvas.esm-B5qzocYs.js +5 -0
- package/dist/{html2canvas.esm-1a1724a1.mjs → html2canvas.esm-BWVIUcAF.mjs} +141 -225
- package/dist/indent.cjs.js +1 -1
- package/dist/indent.esm.js +12 -24
- package/dist/{index-f04538f2.mjs → index-BFsKNTTj.mjs} +70 -71
- package/dist/index-CvJk4DKa.js +221 -0
- package/dist/index-D3CycEFU.mjs +16543 -0
- package/dist/index-tqLTHcO6.js +1 -0
- package/dist/index.cjs.js +1 -1
- package/dist/index.es-CE_A4QSm.js +5 -0
- package/dist/index.es-DQ78mYYo.mjs +6665 -0
- package/dist/index.esm.js +125 -128
- package/dist/italic.cjs.js +1 -1
- package/dist/italic.esm.js +8 -9
- package/dist/jspdf.es.min-BoS80556.js +77 -0
- package/dist/{jspdf.es.min-c36a4fd8.mjs → jspdf.es.min-DQCoX5yh.mjs} +3658 -4682
- package/dist/line-height.cjs.js +1 -1
- package/dist/line-height.esm.js +11 -24
- package/dist/link.cjs.js +5 -5
- package/dist/link.esm.js +24 -30
- package/dist/list.cjs.js +1 -1
- package/dist/list.esm.js +20 -25
- package/dist/lite.cjs.js +1 -1
- package/dist/lite.esm.js +59 -61
- package/dist/math.cjs.js +21 -21
- package/dist/math.esm.js +139 -146
- package/dist/media-manager.cjs.js +31 -31
- package/dist/media-manager.esm.js +285 -300
- package/dist/mentions.cjs.js +9 -9
- package/dist/mentions.esm.js +238 -286
- package/dist/merge-tag.cjs.js +2 -2
- package/dist/merge-tag.esm.js +177 -216
- package/dist/page-break.cjs.js +2 -2
- package/dist/page-break.esm.js +33 -49
- package/dist/pii-redaction.cjs.js +19 -19
- package/dist/pii-redaction.esm.js +393 -463
- package/dist/plugins.css +1 -0
- package/dist/preview.esm.js +5 -10
- package/dist/print.cjs.js +4 -4
- package/dist/print.esm.js +17 -20
- package/dist/{purify.es-35a15df8.mjs → purify.es-DHhaBdbu.mjs} +9 -19
- package/dist/{purify.es-a8d731c6.js → purify.es-T2a3nLiC.js} +1 -1
- package/dist/slash-commands.cjs.js +2 -2
- package/dist/slash-commands.esm.js +39 -75
- package/dist/smart-paste.cjs.js +27 -27
- package/dist/smart-paste.esm.js +280 -336
- package/dist/special-characters.cjs.js +7 -7
- package/dist/special-characters.esm.js +61 -69
- package/dist/spell-check.cjs.js +5 -5
- package/dist/spell-check.esm.js +97 -123
- package/dist/strikethrough.cjs.js +1 -1
- package/dist/strikethrough.esm.js +14 -19
- package/dist/table.cjs.js +4 -4
- package/dist/table.esm.js +191 -225
- package/dist/template.cjs.js +21 -20
- package/dist/template.esm.js +715 -196
- package/dist/text-alignment.cjs.js +1 -1
- package/dist/text-alignment.esm.js +21 -27
- package/dist/text-color.cjs.js +3 -3
- package/dist/text-color.esm.js +70 -87
- package/dist/track-changes.cjs.js +2 -2
- package/dist/track-changes.esm.js +100 -162
- package/dist/translation-workflow.cjs.js +74 -74
- package/dist/translation-workflow.esm.js +602 -678
- package/dist/version-diff.cjs.js +14 -14
- package/dist/version-diff.esm.js +128 -157
- package/package.json +1 -1
- package/dist/_commonjsHelpers-6763f629.js +0 -1
- package/dist/_commonjsHelpers-c5d32002.mjs +0 -30
- package/dist/anchoredPopover-33f1358d.mjs +0 -109
- package/dist/anchoredPopover-8151d535.js +0 -1
- package/dist/documentManager-25b6203c.mjs +0 -9122
- package/dist/documentManager-b69e7054.js +0 -17
- package/dist/html2canvas.esm-09133e29.js +0 -22
- package/dist/index-656d224b.js +0 -231
- package/dist/index-6a8c48bb.js +0 -1
- package/dist/index-d027b7e2.mjs +0 -16859
- package/dist/index.es-730f2d98.mjs +0 -5775
- package/dist/index.es-dd40173b.js +0 -18
- package/dist/jspdf.es.min-90db2c97.js +0 -243
- package/dist/style.css +0 -1
- /package/dist/{editorContainerHelpers-36b8ddf3.js → editorContainerHelpers-CFbfiOJI.js} +0 -0
package/dist/line-height.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=[{label:"1.0",value:"1.0"},{label:"1.15",value:"1.15"},{label:"1.5",value:"1.5"},{label:"2.0",value:"2.0"},{label:"2.5",value:"2.5"},{label:"3.0",value:"3.0"}],m=new Set(["P","DIV","H1","H2","H3","H4","H5","H6","LI","BLOCKQUOTE","PRE"]),u=e=>m.has(e.tagName)&&e.getAttribute("contenteditable")!=="true",E=()=>{const e=window.getSelection();if(e&&e.rangeCount>0){let n=e.getRangeAt(0).startContainer;for(;n&&n!==document.body;){if(n.nodeType===Node.ELEMENT_NODE){const o=n;if(o.getAttribute("contenteditable")==="true")return o}n=n.parentNode}}const t=document.activeElement;if(t){if(t.getAttribute("contenteditable")==="true")return t;const n=t.closest('[contenteditable="true"]');if(n)return n}return document.querySelector('[contenteditable="true"]')},d=e=>{let t=e;for(;t;){if(t.nodeType===Node.ELEMENT_NODE){const n=t;if(u(n))return n;if(n.getAttribute("contenteditable")==="true")break}t=t.parentNode}return null},H=(e,t)=>{const n=[],o=new Set,r=i=>{!i||o.has(i)||t.contains(i)&&u(i)&&(o.add(i),n.push(i))};if(e.collapsed)return r(d(e.startContainer)),n;const s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i;if(!u(c))return NodeFilter.FILTER_SKIP;if(typeof e.intersectsNode=="function")return e.intersectsNode(c)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;const l=document.createRange();return l.selectNodeContents(c),e.compareBoundaryPoints(Range.END_TO_START,l)>0&&e.compareBoundaryPoints(Range.START_TO_END,l)<0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let a=s.nextNode();for(;a;)r(a),a=s.nextNode();return n.length===0&&r(d(e.commonAncestorContainer)),n},b=e=>{e.dispatchEvent(new Event("input",{bubbles:!0}))},L=(e,t)=>{if(t===e.innerHTML)return;const n=window.execEditorCommand||window.executeEditorCommand;if(typeof n=="function")try{n("recordDomTransaction",e,t,e.innerHTML)}catch{}},h=e=>{if(!e)return!1;try{const t=E();if(!t)return!1;const n=window.getSelection();if(!n||n.rangeCount===0)return!1;const o=n.getRangeAt(0);if(!t.contains(o.commonAncestorContainer))return!1;const r=H(o,t);if(r.length===0)return!1;const s=t.innerHTML;return r.forEach(a=>{a.style.lineHeight=e}),L(t,s),b(t),!0}catch(t){return console.error("Failed to set line height:",t),!1}},T=(e,t)=>{
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const g=[{label:"1.0",value:"1.0"},{label:"1.15",value:"1.15"},{label:"1.5",value:"1.5"},{label:"2.0",value:"2.0"},{label:"2.5",value:"2.5"},{label:"3.0",value:"3.0"}],m=new Set(["P","DIV","H1","H2","H3","H4","H5","H6","LI","BLOCKQUOTE","PRE"]),u=e=>m.has(e.tagName)&&e.getAttribute("contenteditable")!=="true",E=()=>{const e=window.getSelection();if(e&&e.rangeCount>0){let n=e.getRangeAt(0).startContainer;for(;n&&n!==document.body;){if(n.nodeType===Node.ELEMENT_NODE){const o=n;if(o.getAttribute("contenteditable")==="true")return o}n=n.parentNode}}const t=document.activeElement;if(t){if(t.getAttribute("contenteditable")==="true")return t;const n=t.closest('[contenteditable="true"]');if(n)return n}return document.querySelector('[contenteditable="true"]')},d=e=>{let t=e;for(;t;){if(t.nodeType===Node.ELEMENT_NODE){const n=t;if(u(n))return n;if(n.getAttribute("contenteditable")==="true")break}t=t.parentNode}return null},H=(e,t)=>{const n=[],o=new Set,r=i=>{!i||o.has(i)||t.contains(i)&&u(i)&&(o.add(i),n.push(i))};if(e.collapsed)return r(d(e.startContainer)),n;const s=document.createTreeWalker(t,NodeFilter.SHOW_ELEMENT,{acceptNode:i=>{const c=i;if(!u(c))return NodeFilter.FILTER_SKIP;if(typeof e.intersectsNode=="function")return e.intersectsNode(c)?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP;const l=document.createRange();return l.selectNodeContents(c),e.compareBoundaryPoints(Range.END_TO_START,l)>0&&e.compareBoundaryPoints(Range.START_TO_END,l)<0?NodeFilter.FILTER_ACCEPT:NodeFilter.FILTER_SKIP}});let a=s.nextNode();for(;a;)r(a),a=s.nextNode();return n.length===0&&r(d(e.commonAncestorContainer)),n},b=e=>{e.dispatchEvent(new Event("input",{bubbles:!0}))},L=(e,t)=>{if(t===e.innerHTML)return;const n=window.execEditorCommand||window.executeEditorCommand;if(typeof n=="function")try{n("recordDomTransaction",e,t,e.innerHTML)}catch{}},h=e=>{if(!e)return!1;try{const t=E();if(!t)return!1;const n=window.getSelection();if(!n||n.rangeCount===0)return!1;const o=n.getRangeAt(0);if(!t.contains(o.commonAncestorContainer))return!1;const r=H(o,t);if(r.length===0)return!1;const s=t.innerHTML;return r.forEach(a=>{a.style.lineHeight=e}),L(t,s),b(t),!0}catch(t){return console.error("Failed to set line height:",t),!1}},T=(e,t)=>{typeof window<"u"&&window.registerEditorCommand?.(e,t)},f=()=>{T("setLineHeight",h)};typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",f):f());const p=()=>({name:"lineHeight",marks:{lineHeight:{attrs:{height:{default:null}},parseDOM:[{tag:'span[style*="line-height"]',getAttrs:e=>{const n=e.style.lineHeight;return n?{height:n}:!1}}],toDOM:e=>["span",{style:`line-height: ${e.attrs?.height}`},0]}},toolbar:[{label:"Line Height",command:"setLineHeight",type:"inline-menu",options:g,icon:'<svg width="24" height="24" focusable="false"><path d="M21 5a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zm0 4a1 1 0 0 1 .1 2H13a1 1 0 0 1-.1-2H21zM7 3.6l3.7 3.7a1 1 0 0 1-1.3 1.5h-.1L8 7.3v9.2l1.3-1.3a1 1 0 0 1 1.3 0h.1c.4.4.4 1 0 1.3v.1L7 20.4l-3.7-3.7a1 1 0 0 1 1.3-1.5h.1L6 16.7V7.4L4.7 8.7a1 1 0 0 1-1.3 0h-.1a1 1 0 0 1 0-1.3v-.1L7 3.6z"></path></svg>'}],commands:{setLineHeight:h}});exports.LineHeightPlugin=p;
|
package/dist/line-height.esm.js
CHANGED
|
@@ -35,8 +35,7 @@ const g = [
|
|
|
35
35
|
if (t.getAttribute("contenteditable") === "true")
|
|
36
36
|
return t;
|
|
37
37
|
const n = t.closest('[contenteditable="true"]');
|
|
38
|
-
if (n)
|
|
39
|
-
return n;
|
|
38
|
+
if (n) return n;
|
|
40
39
|
}
|
|
41
40
|
return document.querySelector('[contenteditable="true"]');
|
|
42
41
|
}, u = (e) => {
|
|
@@ -46,8 +45,7 @@ const g = [
|
|
|
46
45
|
const n = t;
|
|
47
46
|
if (d(n))
|
|
48
47
|
return n;
|
|
49
|
-
if (n.getAttribute("contenteditable") === "true")
|
|
50
|
-
break;
|
|
48
|
+
if (n.getAttribute("contenteditable") === "true") break;
|
|
51
49
|
}
|
|
52
50
|
t = t.parentNode;
|
|
53
51
|
}
|
|
@@ -64,8 +62,7 @@ const g = [
|
|
|
64
62
|
{
|
|
65
63
|
acceptNode: (i) => {
|
|
66
64
|
const c = i;
|
|
67
|
-
if (!d(c))
|
|
68
|
-
return NodeFilter.FILTER_SKIP;
|
|
65
|
+
if (!d(c)) return NodeFilter.FILTER_SKIP;
|
|
69
66
|
if (typeof e.intersectsNode == "function")
|
|
70
67
|
return e.intersectsNode(c) ? NodeFilter.FILTER_ACCEPT : NodeFilter.FILTER_SKIP;
|
|
71
68
|
const l = document.createRange();
|
|
@@ -80,8 +77,7 @@ const g = [
|
|
|
80
77
|
}, L = (e) => {
|
|
81
78
|
e.dispatchEvent(new Event("input", { bubbles: !0 }));
|
|
82
79
|
}, b = (e, t) => {
|
|
83
|
-
if (t === e.innerHTML)
|
|
84
|
-
return;
|
|
80
|
+
if (t === e.innerHTML) return;
|
|
85
81
|
const n = window.execEditorCommand || window.executeEditorCommand;
|
|
86
82
|
if (typeof n == "function")
|
|
87
83
|
try {
|
|
@@ -89,21 +85,16 @@ const g = [
|
|
|
89
85
|
} catch {
|
|
90
86
|
}
|
|
91
87
|
}, h = (e) => {
|
|
92
|
-
if (!e)
|
|
93
|
-
return !1;
|
|
88
|
+
if (!e) return !1;
|
|
94
89
|
try {
|
|
95
90
|
const t = E();
|
|
96
|
-
if (!t)
|
|
97
|
-
return !1;
|
|
91
|
+
if (!t) return !1;
|
|
98
92
|
const n = window.getSelection();
|
|
99
|
-
if (!n || n.rangeCount === 0)
|
|
100
|
-
return !1;
|
|
93
|
+
if (!n || n.rangeCount === 0) return !1;
|
|
101
94
|
const o = n.getRangeAt(0);
|
|
102
|
-
if (!t.contains(o.commonAncestorContainer))
|
|
103
|
-
return !1;
|
|
95
|
+
if (!t.contains(o.commonAncestorContainer)) return !1;
|
|
104
96
|
const r = H(o, t);
|
|
105
|
-
if (r.length === 0)
|
|
106
|
-
return !1;
|
|
97
|
+
if (r.length === 0) return !1;
|
|
107
98
|
const s = t.innerHTML;
|
|
108
99
|
return r.forEach((a) => {
|
|
109
100
|
a.style.lineHeight = e;
|
|
@@ -112,8 +103,7 @@ const g = [
|
|
|
112
103
|
return console.error("Failed to set line height:", t), !1;
|
|
113
104
|
}
|
|
114
105
|
}, p = (e, t) => {
|
|
115
|
-
|
|
116
|
-
typeof window < "u" && ((n = window.registerEditorCommand) == null || n.call(window, e, t));
|
|
106
|
+
typeof window < "u" && window.registerEditorCommand?.(e, t);
|
|
117
107
|
}, f = () => {
|
|
118
108
|
p("setLineHeight", h);
|
|
119
109
|
};
|
|
@@ -134,10 +124,7 @@ const N = () => ({
|
|
|
134
124
|
}
|
|
135
125
|
}
|
|
136
126
|
],
|
|
137
|
-
toDOM: (e) => {
|
|
138
|
-
var t;
|
|
139
|
-
return ["span", { style: `line-height: ${(t = e.attrs) == null ? void 0 : t.height}` }, 0];
|
|
140
|
-
}
|
|
127
|
+
toDOM: (e) => ["span", { style: `line-height: ${e.attrs?.height}` }, 0]
|
|
141
128
|
}
|
|
142
129
|
},
|
|
143
130
|
toolbar: [
|
package/dist/link.cjs.js
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let a=null,u=!1,l=null;const p='[data-theme="dark"], .dark, .editora-theme-dark',w=e=>{if(!e)return null;let t=e;for(;t;){if(t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")==="true"||t.hasAttribute("data-editora-content"))return t;t=t.parentElement}return null},C=e=>{if(e){const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});let a=null,u=!1,l=null;const p='[data-theme="dark"], .dark, .editora-theme-dark',w=e=>{if(!e)return null;let t=e;for(;t;){if(t.hasAttribute("contenteditable")&&t.getAttribute("contenteditable")==="true"||t.hasAttribute("data-editora-content"))return t;t=t.parentElement}return null},C=e=>{if(e){const n=e.startContainer;if((n.nodeType===Node.ELEMENT_NODE?n:n.parentElement)?.closest(p))return!0}return document.activeElement?.closest(p)?!0:document.body.matches(p)||document.documentElement.matches(p)},T=()=>{if(document.getElementById("rte-link-dialog-theme-styles"))return;const e=document.createElement("style");e.id="rte-link-dialog-theme-styles",e.textContent=`
|
|
2
2
|
.link-dialog-overlay.rte-theme-dark .link-dialog {
|
|
3
3
|
background: #1f2937 !important;
|
|
4
4
|
border: 1px solid #4b5563 !important;
|
|
@@ -61,7 +61,7 @@
|
|
|
61
61
|
.link-dialog-overlay.rte-theme-dark .btn-submit:hover {
|
|
62
62
|
background: #2563eb !important;
|
|
63
63
|
}
|
|
64
|
-
`,document.head.appendChild(e)},A=e=>{if(!a){console.warn("No selection range stored");return}const t=a.startContainer,
|
|
64
|
+
`,document.head.appendChild(e)},A=e=>{if(!a){console.warn("No selection range stored");return}const t=a.startContainer,n=t.nodeType===Node.TEXT_NODE?t.parentElement:t,o=w(n);if(o){if(u&&l){l.href=e.url,l.textContent=e.text,l.target=e.target,e.target==="_blank"?l.setAttribute("rel","noopener noreferrer"):l.removeAttribute("rel"),e.title?l.title=e.title:l.removeAttribute("title");const r=document.createRange();r.selectNodeContents(l);const i=window.getSelection();i&&(i.removeAllRanges(),i.addRange(r))}else{const r=document.createElement("a");r.href=e.url,r.textContent=e.text,r.target=e.target,e.target==="_blank"&&r.setAttribute("rel","noopener noreferrer"),e.title&&(r.title=e.title),a.deleteContents(),a.insertNode(r),a.setStartAfter(r),a.setEndAfter(r);const i=window.getSelection();i&&(i.removeAllRanges(),i.addRange(a))}o.focus(),a=null,u=!1,l=null}},k=(e,t)=>{T();const n=document.createElement("div");n.className="link-dialog-overlay",t&&n.classList.add("rte-theme-dark"),n.style.cssText=`
|
|
65
65
|
position: fixed;
|
|
66
66
|
top: 0;
|
|
67
67
|
left: 0;
|
|
@@ -72,13 +72,13 @@
|
|
|
72
72
|
align-items: center;
|
|
73
73
|
justify-content: center;
|
|
74
74
|
z-index: 10000;
|
|
75
|
-
`;const
|
|
75
|
+
`;const o=document.createElement("div");o.className="link-dialog",o.style.cssText=`
|
|
76
76
|
background: white;
|
|
77
77
|
border-radius: 8px;
|
|
78
78
|
width: 500px;
|
|
79
79
|
max-width: 90%;
|
|
80
80
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
81
|
-
`,
|
|
81
|
+
`,o.innerHTML=`
|
|
82
82
|
<div class="link-dialog-header" style="padding: 16px 20px; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center;">
|
|
83
83
|
<h3 style="margin: 0; font-size: 18px;">${e.isEditing?"Edit Link":"Insert Link"}</h3>
|
|
84
84
|
<button class="link-dialog-close" style="background: none; border: none; font-size: 24px; cursor: pointer; padding: 0; width: 30px; height: 30px;">×</button>
|
|
@@ -135,4 +135,4 @@
|
|
|
135
135
|
</button>
|
|
136
136
|
</div>
|
|
137
137
|
</form>
|
|
138
|
-
`,
|
|
138
|
+
`,n.appendChild(o),document.body.appendChild(n);const r=o.querySelector("#link-form"),i=o.querySelector("#link-text"),d=o.querySelector("#link-url"),y=o.querySelector("#link-title"),v=o.querySelector("#link-target"),E=o.querySelector(".link-dialog-close"),L=o.querySelector(".btn-cancel"),b=s=>{s.key==="Escape"&&(s.preventDefault(),s.stopPropagation(),c())},c=()=>{document.removeEventListener("keydown",b,!0),n.remove()};E.addEventListener("click",c),L.addEventListener("click",c),n.addEventListener("click",s=>{s.target===n&&c()}),document.addEventListener("keydown",b,!0),r.addEventListener("submit",s=>{s.preventDefault();const g=d.value.trim();g&&(A({text:i.value.trim()||g,url:g,target:v.checked?"_blank":"_self",title:y.value.trim()||void 0}),c())}),setTimeout(()=>i.focus(),100)},x=()=>{const e=window.getSelection();if(!e||e.rangeCount===0)return!1;const t=e.getRangeAt(0).cloneRange();a=t;const n=C(t),o=e.toString()||"",r=t.startContainer,d=(r.nodeType===Node.TEXT_NODE?r.parentElement:r)?.closest("a");return d?(u=!0,l=d,k({text:d.textContent||"",url:d.href,target:d.target||"_self",title:d.title||"",isEditing:!0},n)):(u=!1,l=null,k({text:o,url:"",target:"_self",isEditing:!1},n)),!0},h=()=>(document.execCommand("unlink",!1),!0),m=(e,t)=>{typeof window<"u"&&window.registerEditorCommand?.(e,t)},f=()=>{m("openLinkDialog",x),m("removeLink",h),m("createLink",e=>{e&&document.execCommand("createLink",!1,e)})};typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",f):f());const S=()=>({name:"link",marks:{link:{attrs:{href:{},title:{default:null},target:{default:null}},parseDOM:[{tag:"a[href]",getAttrs:e=>({href:e.getAttribute("href"),title:e.getAttribute("title"),target:e.getAttribute("target")})}],toDOM:e=>["a",{href:e.attrs.href,title:e.attrs.title,target:e.attrs.target,rel:e.attrs.target==="_blank"?"noopener noreferrer":null},0]}},toolbar:[{label:"Link",command:"openLinkDialog",type:"button",icon:'<svg width="24" height="24" focusable="false"><path d="M6.2 12.3a1 1 0 0 1 1.4 1.4l-2 2a2 2 0 1 0 2.6 2.8l4.8-4.8a1 1 0 0 0 0-1.4 1 1 0 1 1 1.4-1.3 2.9 2.9 0 0 1 0 4L9.6 20a3.9 3.9 0 0 1-5.5-5.5l2-2Zm11.6-.6a1 1 0 0 1-1.4-1.4l2-2a2 2 0 1 0-2.6-2.8L11 10.3a1 1 0 0 0 0 1.4A1 1 0 1 1 9.6 13a2.9 2.9 0 0 1 0-4L14.4 4a3.9 3.9 0 0 1 5.5 5.5l-2 2Z" fill-rule="nonzero"></path></svg>',shortcut:"Mod-k"}],commands:{openLinkDialog:x,removeLink:h},keymap:{"Mod-k":"openLinkDialog"}});exports.LinkPlugin=S;
|
package/dist/link.esm.js
CHANGED
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
let a = null, u = !1, l = null;
|
|
2
2
|
const p = '[data-theme="dark"], .dark, .editora-theme-dark', w = (e) => {
|
|
3
|
-
if (!e)
|
|
4
|
-
return null;
|
|
3
|
+
if (!e) return null;
|
|
5
4
|
let t = e;
|
|
6
5
|
for (; t; ) {
|
|
7
6
|
if (t.hasAttribute("contenteditable") && t.getAttribute("contenteditable") === "true" || t.hasAttribute("data-editora-content"))
|
|
@@ -11,15 +10,12 @@ const p = '[data-theme="dark"], .dark, .editora-theme-dark', w = (e) => {
|
|
|
11
10
|
return null;
|
|
12
11
|
}, C = (e) => {
|
|
13
12
|
if (e) {
|
|
14
|
-
const
|
|
15
|
-
if (n
|
|
16
|
-
return !0;
|
|
13
|
+
const n = e.startContainer;
|
|
14
|
+
if ((n.nodeType === Node.ELEMENT_NODE ? n : n.parentElement)?.closest(p)) return !0;
|
|
17
15
|
}
|
|
18
|
-
|
|
19
|
-
return t != null && t.closest(p) ? !0 : document.body.matches(p) || document.documentElement.matches(p);
|
|
16
|
+
return document.activeElement?.closest(p) ? !0 : document.body.matches(p) || document.documentElement.matches(p);
|
|
20
17
|
}, T = () => {
|
|
21
|
-
if (document.getElementById("rte-link-dialog-theme-styles"))
|
|
22
|
-
return;
|
|
18
|
+
if (document.getElementById("rte-link-dialog-theme-styles")) return;
|
|
23
19
|
const e = document.createElement("style");
|
|
24
20
|
e.id = "rte-link-dialog-theme-styles", e.textContent = `
|
|
25
21
|
.link-dialog-overlay.rte-theme-dark .link-dialog {
|
|
@@ -90,8 +86,8 @@ const p = '[data-theme="dark"], .dark, .editora-theme-dark', w = (e) => {
|
|
|
90
86
|
console.warn("No selection range stored");
|
|
91
87
|
return;
|
|
92
88
|
}
|
|
93
|
-
const t = a.startContainer,
|
|
94
|
-
if (
|
|
89
|
+
const t = a.startContainer, n = t.nodeType === Node.TEXT_NODE ? t.parentElement : t, o = w(n);
|
|
90
|
+
if (o) {
|
|
95
91
|
if (u && l) {
|
|
96
92
|
l.href = e.url, l.textContent = e.text, l.target = e.target, e.target === "_blank" ? l.setAttribute("rel", "noopener noreferrer") : l.removeAttribute("rel"), e.title ? l.title = e.title : l.removeAttribute("title");
|
|
97
93
|
const r = document.createRange();
|
|
@@ -104,12 +100,12 @@ const p = '[data-theme="dark"], .dark, .editora-theme-dark', w = (e) => {
|
|
|
104
100
|
const i = window.getSelection();
|
|
105
101
|
i && (i.removeAllRanges(), i.addRange(a));
|
|
106
102
|
}
|
|
107
|
-
|
|
103
|
+
o.focus(), a = null, u = !1, l = null;
|
|
108
104
|
}
|
|
109
105
|
}, k = (e, t) => {
|
|
110
106
|
T();
|
|
111
|
-
const
|
|
112
|
-
|
|
107
|
+
const n = document.createElement("div");
|
|
108
|
+
n.className = "link-dialog-overlay", t && n.classList.add("rte-theme-dark"), n.style.cssText = `
|
|
113
109
|
position: fixed;
|
|
114
110
|
top: 0;
|
|
115
111
|
left: 0;
|
|
@@ -121,14 +117,14 @@ const p = '[data-theme="dark"], .dark, .editora-theme-dark', w = (e) => {
|
|
|
121
117
|
justify-content: center;
|
|
122
118
|
z-index: 10000;
|
|
123
119
|
`;
|
|
124
|
-
const
|
|
125
|
-
|
|
120
|
+
const o = document.createElement("div");
|
|
121
|
+
o.className = "link-dialog", o.style.cssText = `
|
|
126
122
|
background: white;
|
|
127
123
|
border-radius: 8px;
|
|
128
124
|
width: 500px;
|
|
129
125
|
max-width: 90%;
|
|
130
126
|
box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
|
|
131
|
-
`,
|
|
127
|
+
`, o.innerHTML = `
|
|
132
128
|
<div class="link-dialog-header" style="padding: 16px 20px; border-bottom: 1px solid #ddd; display: flex; justify-content: space-between; align-items: center;">
|
|
133
129
|
<h3 style="margin: 0; font-size: 18px;">${e.isEditing ? "Edit Link" : "Insert Link"}</h3>
|
|
134
130
|
<button class="link-dialog-close" style="background: none; border: none; font-size: 24px; cursor: pointer; padding: 0; width: 30px; height: 30px;">×</button>
|
|
@@ -185,14 +181,14 @@ const p = '[data-theme="dark"], .dark, .editora-theme-dark', w = (e) => {
|
|
|
185
181
|
</button>
|
|
186
182
|
</div>
|
|
187
183
|
</form>
|
|
188
|
-
`,
|
|
189
|
-
const r =
|
|
184
|
+
`, n.appendChild(o), document.body.appendChild(n);
|
|
185
|
+
const r = o.querySelector("#link-form"), i = o.querySelector("#link-text"), d = o.querySelector("#link-url"), y = o.querySelector("#link-title"), v = o.querySelector("#link-target"), E = o.querySelector(".link-dialog-close"), L = o.querySelector(".btn-cancel"), b = (s) => {
|
|
190
186
|
s.key === "Escape" && (s.preventDefault(), s.stopPropagation(), c());
|
|
191
187
|
}, c = () => {
|
|
192
|
-
document.removeEventListener("keydown", b, !0),
|
|
188
|
+
document.removeEventListener("keydown", b, !0), n.remove();
|
|
193
189
|
};
|
|
194
|
-
E.addEventListener("click", c), L.addEventListener("click", c),
|
|
195
|
-
s.target ===
|
|
190
|
+
E.addEventListener("click", c), L.addEventListener("click", c), n.addEventListener("click", (s) => {
|
|
191
|
+
s.target === n && c();
|
|
196
192
|
}), document.addEventListener("keydown", b, !0), r.addEventListener("submit", (s) => {
|
|
197
193
|
s.preventDefault();
|
|
198
194
|
const g = d.value.trim();
|
|
@@ -205,26 +201,24 @@ const p = '[data-theme="dark"], .dark, .editora-theme-dark', w = (e) => {
|
|
|
205
201
|
}), setTimeout(() => i.focus(), 100);
|
|
206
202
|
}, x = () => {
|
|
207
203
|
const e = window.getSelection();
|
|
208
|
-
if (!e || e.rangeCount === 0)
|
|
209
|
-
return !1;
|
|
204
|
+
if (!e || e.rangeCount === 0) return !1;
|
|
210
205
|
const t = e.getRangeAt(0).cloneRange();
|
|
211
206
|
a = t;
|
|
212
|
-
const
|
|
207
|
+
const n = C(t), o = e.toString() || "", r = t.startContainer, d = (r.nodeType === Node.TEXT_NODE ? r.parentElement : r)?.closest("a");
|
|
213
208
|
return d ? (u = !0, l = d, k({
|
|
214
209
|
text: d.textContent || "",
|
|
215
210
|
url: d.href,
|
|
216
211
|
target: d.target || "_self",
|
|
217
212
|
title: d.title || "",
|
|
218
213
|
isEditing: !0
|
|
219
|
-
},
|
|
220
|
-
text:
|
|
214
|
+
}, n)) : (u = !1, l = null, k({
|
|
215
|
+
text: o,
|
|
221
216
|
url: "",
|
|
222
217
|
target: "_self",
|
|
223
218
|
isEditing: !1
|
|
224
|
-
},
|
|
219
|
+
}, n)), !0;
|
|
225
220
|
}, h = () => (document.execCommand("unlink", !1), !0), m = (e, t) => {
|
|
226
|
-
|
|
227
|
-
typeof window < "u" && ((o = window.registerEditorCommand) == null || o.call(window, e, t));
|
|
221
|
+
typeof window < "u" && window.registerEditorCommand?.(e, t);
|
|
228
222
|
}, f = () => {
|
|
229
223
|
m("openLinkDialog", x), m("removeLink", h), m("createLink", (e) => {
|
|
230
224
|
e && document.execCommand("createLink", !1, e);
|
package/dist/list.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=()=>m("insertUnorderedList"),u=()=>m("insertOrderedList");function g(){const o=window.getSelection();if(o&&o.rangeCount>0){const
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const d=()=>m("insertUnorderedList"),u=()=>m("insertOrderedList");function g(){const o=window.getSelection();if(o&&o.rangeCount>0){const n=o.getRangeAt(0).startContainer,e=(n.nodeType===Node.ELEMENT_NODE?n:n.parentElement)?.closest('[contenteditable="true"], .rte-content, .editora-content');if(e)return e}const t=document.activeElement;return t?t.getAttribute("contenteditable")==="true"?t:t.closest('[contenteditable="true"], .rte-content, .editora-content'):null}function f(o){o.querySelectorAll('ul:not([data-type="checklist"]), ol').forEach(n=>{Array.from(n.childNodes).forEach(e=>{if(e.nodeType===Node.TEXT_NODE){const l=(e.textContent||"").trim();if(!l){n.removeChild(e);return}const s=document.createElement("li");s.textContent=l,n.replaceChild(s,e);return}if(!(e instanceof HTMLElement)){n.removeChild(e);return}if(e.tagName==="LI")return;const i=document.createElement("li");for(;e.firstChild;)i.appendChild(e.firstChild);n.replaceChild(i,e)})})}function m(o){const t=g();if(!t)return!1;const n=window.getSelection();if(!n||n.rangeCount===0)return!1;const r=n.getRangeAt(0);if(!t.contains(r.commonAncestorContainer))return!1;t.focus({preventScroll:!0});const e=document.execCommand(o,!1);return f(t),t.dispatchEvent(new Event("input",{bubbles:!0})),e!==!1}const c=(o,t)=>{typeof window<"u"&&window.registerEditorCommand?.(o,t)},a=()=>{c("toggleBulletList",d),c("toggleOrderedList",u)};typeof window<"u"&&(document.readyState==="loading"?document.addEventListener("DOMContentLoaded",a):a());const h=()=>({name:"list",nodes:{bulletList:{content:"listItem+",group:"block",parseDOM:[{tag:"ul"}],toDOM:()=>["ul",0]},orderedList:{content:"listItem+",group:"block",parseDOM:[{tag:"ol"}],toDOM:()=>["ol",0]},listItem:{content:"paragraph",parseDOM:[{tag:"li"}],toDOM:()=>["li",0]}},toolbar:[{label:"Bullet List",command:"toggleBulletList",type:"button",icon:'<svg width="24" height="24" focusable="false"><path d="M11 5h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0 6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2ZM4.5 6c0 .4.1.8.4 1 .3.4.7.5 1.1.5.4 0 .8-.1 1-.4.4-.3.5-.7.5-1.1 0-.4-.1-.8-.4-1-.3-.4-.7-.5-1.1-.5-.4 0-.8.1-1 .4-.4.3-.5.7-.5 1.1Zm0 6c0 .4.1.8.4 1 .3.4.7.5 1.1.5.4 0 .8-.1 1-.4.4-.3.5-.7.5-1.1 0-.4-.1-.8-.4-1-.3-.4-.7-.5-1.1-.5-.4 0-.8.1-1 .4-.4.3-.5.7-.5 1.1Zm0 6c0 .4.1.8.4 1 .3.4.7.5 1.1.5.4 0 .8-.1 1-.4.4-.3.5-.7.5-1.1 0-.4-.1-.8-.4-1-.3-.4-.7-.5-1.1-.5-.4 0-.8.1-1 .4-.4.3-.5.7-.5 1.1Z" fill-rule="evenodd"></path></svg>',shortcut:"Mod-Shift-8"},{label:"Numbered List",command:"toggleOrderedList",type:"button",icon:'<svg width="24" height="24" focusable="false"><path d="M10 17h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 0 1 0-2Zm0-6h8c.6 0 1 .4 1 1s-.4 1-1 1h-8a1 1 0 1 1 0-2ZM6 4v3.5c0 .3-.2.5-.5.5a.5.5 0 0 1-.5-.5V5h-.5a.5.5 0 0 1 0-1H6Zm-1 8.8l.2.2h1.3c.3 0 .5.2.5.5s-.2.5-.5.5H4.9a1 1 0 0 1-.9-1V13c0-.4.3-.8.6-1l1.2-.4.2-.3a.2.2 0 0 0 0-.2l-.7.3a.5.5 0 0 1-.7-.3.5.5 0 0 1 .3-.6l.7-.4c.5-.2 1.1 0 1.4.4.3.5.3 1.1-.1 1.5l-1.2.7Zm0 3.7v.5c0 .3.2.5.5.5h1c.3 0 .5.2.5.5s-.2.5-.5.5h-1a1.5 1.5 0 0 1-1.5-1.5v-.5c0-.3.1-.6.3-.8l1.3-1.4c.3-.4.1-.9-.2-1-.1 0-.2 0-.3.2l-.4.5a.5.5 0 0 1-.7.1.5.5 0 0 1-.1-.7l.4-.5c.5-.5 1.2-.6 1.8-.4.6.3 1 .9 1 1.6 0 .4-.2.8-.5 1.1l-1.3 1.4-.3.4Z" fill-rule="evenodd"></path></svg>',shortcut:"Mod-Shift-7"}],commands:{toggleBulletList:d,toggleOrderedList:u},keymap:{"Mod-Shift-8":"toggleBulletList","Mod-Shift-7":"toggleOrderedList"}});exports.ListPlugin=h;
|
package/dist/list.esm.js
CHANGED
|
@@ -2,28 +2,27 @@ const d = () => m("insertUnorderedList"), u = () => m("insertOrderedList");
|
|
|
2
2
|
function g() {
|
|
3
3
|
const o = window.getSelection();
|
|
4
4
|
if (o && o.rangeCount > 0) {
|
|
5
|
-
const
|
|
6
|
-
if (e)
|
|
7
|
-
return e;
|
|
5
|
+
const n = o.getRangeAt(0).startContainer, e = (n.nodeType === Node.ELEMENT_NODE ? n : n.parentElement)?.closest('[contenteditable="true"], .rte-content, .editora-content');
|
|
6
|
+
if (e) return e;
|
|
8
7
|
}
|
|
9
|
-
const
|
|
10
|
-
return
|
|
8
|
+
const t = document.activeElement;
|
|
9
|
+
return t ? t.getAttribute("contenteditable") === "true" ? t : t.closest('[contenteditable="true"], .rte-content, .editora-content') : null;
|
|
11
10
|
}
|
|
12
11
|
function f(o) {
|
|
13
|
-
o.querySelectorAll('ul:not([data-type="checklist"]), ol').forEach((
|
|
14
|
-
Array.from(
|
|
12
|
+
o.querySelectorAll('ul:not([data-type="checklist"]), ol').forEach((n) => {
|
|
13
|
+
Array.from(n.childNodes).forEach((e) => {
|
|
15
14
|
if (e.nodeType === Node.TEXT_NODE) {
|
|
16
15
|
const l = (e.textContent || "").trim();
|
|
17
16
|
if (!l) {
|
|
18
|
-
|
|
17
|
+
n.removeChild(e);
|
|
19
18
|
return;
|
|
20
19
|
}
|
|
21
20
|
const s = document.createElement("li");
|
|
22
|
-
s.textContent = l,
|
|
21
|
+
s.textContent = l, n.replaceChild(s, e);
|
|
23
22
|
return;
|
|
24
23
|
}
|
|
25
24
|
if (!(e instanceof HTMLElement)) {
|
|
26
|
-
|
|
25
|
+
n.removeChild(e);
|
|
27
26
|
return;
|
|
28
27
|
}
|
|
29
28
|
if (e.tagName === "LI")
|
|
@@ -31,27 +30,23 @@ function f(o) {
|
|
|
31
30
|
const i = document.createElement("li");
|
|
32
31
|
for (; e.firstChild; )
|
|
33
32
|
i.appendChild(e.firstChild);
|
|
34
|
-
|
|
33
|
+
n.replaceChild(i, e);
|
|
35
34
|
});
|
|
36
35
|
});
|
|
37
36
|
}
|
|
38
37
|
function m(o) {
|
|
39
|
-
const
|
|
40
|
-
if (!
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
if (!n.contains(r.commonAncestorContainer))
|
|
47
|
-
return !1;
|
|
48
|
-
n.focus({ preventScroll: !0 });
|
|
38
|
+
const t = g();
|
|
39
|
+
if (!t) return !1;
|
|
40
|
+
const n = window.getSelection();
|
|
41
|
+
if (!n || n.rangeCount === 0) return !1;
|
|
42
|
+
const r = n.getRangeAt(0);
|
|
43
|
+
if (!t.contains(r.commonAncestorContainer)) return !1;
|
|
44
|
+
t.focus({ preventScroll: !0 });
|
|
49
45
|
const e = document.execCommand(o, !1);
|
|
50
|
-
return f(
|
|
46
|
+
return f(t), t.dispatchEvent(new Event("input", { bubbles: !0 })), e !== !1;
|
|
51
47
|
}
|
|
52
|
-
const c = (o,
|
|
53
|
-
|
|
54
|
-
typeof window < "u" && ((t = window.registerEditorCommand) == null || t.call(window, o, n));
|
|
48
|
+
const c = (o, t) => {
|
|
49
|
+
typeof window < "u" && window.registerEditorCommand?.(o, t);
|
|
55
50
|
}, a = () => {
|
|
56
51
|
c("toggleBulletList", d), c("toggleOrderedList", u);
|
|
57
52
|
};
|
package/dist/lite.cjs.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./heading.cjs.js"),n=require("./bold.cjs.js"),l=require("./italic.cjs.js"),r=require("./underline.cjs.js"),t=require("./strikethrough.cjs.js"),u=require("./list.cjs.js"),o=require("./checklist.cjs.js"),g=require("./history.cjs.js"),P=require("./link.cjs.js"),c=require("./blockquote.cjs.js"),s=require("./clear-formatting.cjs.js"),a=require("./table.cjs.js"),q=require("./font-size.cjs.js"),d=require("./font-family.cjs.js"),h=require("./text-alignment.cjs.js"),k=require("./text-color.cjs.js"),C=require("./background-color.cjs.js"),b=require("./line-height.cjs.js"),p=require("./indent.cjs.js"),F=require("./direction.cjs.js"),A=require("./capitalization.cjs.js"),f=require("./anchor.cjs.js"),m=require("./page-break.cjs.js"),B=require("./footnote.cjs.js"),H=require("./fullscreen.cjs.js"),y=require("./preview.cjs.js"),S=require("./print.cjs.js"),i=require("./shared-config.cjs.js");
|
|
1
|
+
"use strict";Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const e=require("./heading.cjs.js"),n=require("./bold.cjs.js"),l=require("./italic.cjs.js"),r=require("./underline.cjs.js"),t=require("./strikethrough.cjs.js"),u=require("./list.cjs.js"),o=require("./checklist.cjs.js"),g=require("./history.cjs.js"),P=require("./link.cjs.js"),c=require("./blockquote.cjs.js"),s=require("./clear-formatting.cjs.js"),a=require("./table.cjs.js"),q=require("./font-size.cjs.js"),d=require("./font-family.cjs.js"),h=require("./text-alignment.cjs.js"),k=require("./text-color.cjs.js"),C=require("./background-color.cjs.js"),b=require("./line-height.cjs.js"),p=require("./indent.cjs.js"),F=require("./direction.cjs.js"),A=require("./capitalization.cjs.js"),f=require("./anchor.cjs.js"),m=require("./page-break.cjs.js"),B=require("./footnote.cjs.js"),H=require("./fullscreen.cjs.js"),y=require("./preview.cjs.js"),S=require("./print.cjs.js"),i=require("./shared-config.cjs.js");exports.HeadingPlugin=e.HeadingPlugin;exports.BoldPlugin=n.BoldPlugin;exports.ItalicPlugin=l.ItalicPlugin;exports.UnderlinePlugin=r.UnderlinePlugin;exports.StrikethroughPlugin=t.StrikethroughPlugin;exports.ListPlugin=u.ListPlugin;exports.ChecklistPlugin=o.ChecklistPlugin;exports.HistoryPlugin=g.HistoryPlugin;exports.LinkPlugin=P.LinkPlugin;exports.BlockquotePlugin=c.BlockquotePlugin;exports.ClearFormattingPlugin=s.ClearFormattingPlugin;exports.TablePlugin=a.TablePlugin;exports.FontSizePlugin=q.FontSizePlugin;exports.FontFamilyPlugin=d.FontFamilyPlugin;exports.TextAlignmentPlugin=h.TextAlignmentPlugin;exports.TextColorPlugin=k.TextColorPlugin;exports.BackgroundColorPlugin=C.BackgroundColorPlugin;exports.LineHeightPlugin=b.LineHeightPlugin;exports.IndentPlugin=p.IndentPlugin;exports.DirectionPlugin=F.DirectionPlugin;exports.CapitalizationPlugin=A.CapitalizationPlugin;exports.AnchorPlugin=f.AnchorPlugin;exports.PageBreakPlugin=m.PageBreakPlugin;exports.FootnotePlugin=B.FootnotePlugin;exports.FullscreenPlugin=H.FullscreenPlugin;exports.PreviewPlugin=y.PreviewPlugin;exports.PrintPlugin=S.PrintPlugin;exports.buildApiUrl=i.buildApiUrl;exports.getGlobalApiConfig=i.getGlobalApiConfig;exports.getGlobalApiHeaders=i.getGlobalApiHeaders;exports.setGlobalApiConfig=i.setGlobalApiConfig;
|
package/dist/lite.esm.js
CHANGED
|
@@ -1,63 +1,61 @@
|
|
|
1
|
-
import { HeadingPlugin as
|
|
2
|
-
import { BoldPlugin as
|
|
3
|
-
import { ItalicPlugin as
|
|
4
|
-
import { UnderlinePlugin as
|
|
5
|
-
import { StrikethroughPlugin as
|
|
6
|
-
import { ListPlugin as
|
|
7
|
-
import { ChecklistPlugin as
|
|
8
|
-
import { HistoryPlugin as
|
|
9
|
-
import { LinkPlugin as
|
|
10
|
-
import { BlockquotePlugin as
|
|
11
|
-
import { ClearFormattingPlugin as
|
|
12
|
-
import { TablePlugin as
|
|
13
|
-
import { FontSizePlugin as
|
|
14
|
-
import { FontFamilyPlugin as
|
|
15
|
-
import { TextAlignmentPlugin as
|
|
16
|
-
import { TextColorPlugin as
|
|
17
|
-
import { BackgroundColorPlugin as
|
|
18
|
-
import { LineHeightPlugin as
|
|
19
|
-
import { IndentPlugin as
|
|
20
|
-
import { DirectionPlugin as
|
|
21
|
-
import { CapitalizationPlugin as
|
|
22
|
-
import { AnchorPlugin as
|
|
23
|
-
import { PageBreakPlugin as
|
|
24
|
-
import { FootnotePlugin as
|
|
25
|
-
import { FullscreenPlugin as
|
|
26
|
-
import { PreviewPlugin as
|
|
27
|
-
import { PrintPlugin as
|
|
28
|
-
import { buildApiUrl as
|
|
29
|
-
import "./editorContainerHelpers-69585c07.mjs";
|
|
30
|
-
import "./anchoredPopover-33f1358d.mjs";
|
|
1
|
+
import { HeadingPlugin as e } from "./heading.esm.js";
|
|
2
|
+
import { BoldPlugin as t } from "./bold.esm.js";
|
|
3
|
+
import { ItalicPlugin as n } from "./italic.esm.js";
|
|
4
|
+
import { UnderlinePlugin as p } from "./underline.esm.js";
|
|
5
|
+
import { StrikethroughPlugin as m } from "./strikethrough.esm.js";
|
|
6
|
+
import { ListPlugin as x } from "./list.esm.js";
|
|
7
|
+
import { ChecklistPlugin as a } from "./checklist.esm.js";
|
|
8
|
+
import { HistoryPlugin as d } from "./history.esm.js";
|
|
9
|
+
import { LinkPlugin as k } from "./link.esm.js";
|
|
10
|
+
import { BlockquotePlugin as A } from "./blockquote.esm.js";
|
|
11
|
+
import { ClearFormattingPlugin as b } from "./clear-formatting.esm.js";
|
|
12
|
+
import { TablePlugin as B } from "./table.esm.js";
|
|
13
|
+
import { FontSizePlugin as G } from "./font-size.esm.js";
|
|
14
|
+
import { FontFamilyPlugin as T } from "./font-family.esm.js";
|
|
15
|
+
import { TextAlignmentPlugin as z } from "./text-alignment.esm.js";
|
|
16
|
+
import { TextColorPlugin as S } from "./text-color.esm.js";
|
|
17
|
+
import { BackgroundColorPlugin as q } from "./background-color.esm.js";
|
|
18
|
+
import { LineHeightPlugin as w } from "./line-height.esm.js";
|
|
19
|
+
import { IndentPlugin as j } from "./indent.esm.js";
|
|
20
|
+
import { DirectionPlugin as J } from "./direction.esm.js";
|
|
21
|
+
import { CapitalizationPlugin as M } from "./capitalization.esm.js";
|
|
22
|
+
import { AnchorPlugin as O } from "./anchor.esm.js";
|
|
23
|
+
import { PageBreakPlugin as R } from "./page-break.esm.js";
|
|
24
|
+
import { FootnotePlugin as W } from "./footnote.esm.js";
|
|
25
|
+
import { FullscreenPlugin as Y } from "./fullscreen.esm.js";
|
|
26
|
+
import { PreviewPlugin as _ } from "./preview.esm.js";
|
|
27
|
+
import { PrintPlugin as oo } from "./print.esm.js";
|
|
28
|
+
import { buildApiUrl as eo, getGlobalApiConfig as io, getGlobalApiHeaders as to, setGlobalApiConfig as lo } from "./shared-config.esm.js";
|
|
31
29
|
export {
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
30
|
+
O as AnchorPlugin,
|
|
31
|
+
q as BackgroundColorPlugin,
|
|
32
|
+
A as BlockquotePlugin,
|
|
33
|
+
t as BoldPlugin,
|
|
34
|
+
M as CapitalizationPlugin,
|
|
35
|
+
a as ChecklistPlugin,
|
|
36
|
+
b as ClearFormattingPlugin,
|
|
37
|
+
J as DirectionPlugin,
|
|
38
|
+
T as FontFamilyPlugin,
|
|
39
|
+
G as FontSizePlugin,
|
|
40
|
+
W as FootnotePlugin,
|
|
41
|
+
Y as FullscreenPlugin,
|
|
42
|
+
e as HeadingPlugin,
|
|
43
|
+
d as HistoryPlugin,
|
|
44
|
+
j as IndentPlugin,
|
|
45
|
+
n as ItalicPlugin,
|
|
46
|
+
w as LineHeightPlugin,
|
|
47
|
+
k as LinkPlugin,
|
|
48
|
+
x as ListPlugin,
|
|
49
|
+
R as PageBreakPlugin,
|
|
50
|
+
_ as PreviewPlugin,
|
|
51
|
+
oo as PrintPlugin,
|
|
52
|
+
m as StrikethroughPlugin,
|
|
53
|
+
B as TablePlugin,
|
|
54
|
+
z as TextAlignmentPlugin,
|
|
55
|
+
S as TextColorPlugin,
|
|
56
|
+
p as UnderlinePlugin,
|
|
57
|
+
eo as buildApiUrl,
|
|
58
|
+
io as getGlobalApiConfig,
|
|
59
|
+
to as getGlobalApiHeaders,
|
|
60
|
+
lo as setGlobalApiConfig
|
|
63
61
|
};
|