vdc-editor 0.1.124 → 0.1.126
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/lib/vdc-editor.mjs +129 -116
- package/lib/vdc-editor.mjs.map +1 -1
- package/lib/vdc-editor.umd.js +48 -48
- package/lib/vdc-editor.umd.js.map +1 -1
- package/package.json +1 -1
package/lib/vdc-editor.mjs
CHANGED
|
@@ -1588,7 +1588,7 @@ function mL(t) {
|
|
|
1588
1588
|
e.reduce((n, o) => G1(n, o, ""), {})
|
|
1589
1589
|
);
|
|
1590
1590
|
}
|
|
1591
|
-
const gL = mL(), [mh,
|
|
1591
|
+
const gL = mL(), [mh, jse] = cn("ConfigProvider");
|
|
1592
1592
|
let bL = "useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict", vL = (t = 21) => {
|
|
1593
1593
|
let e = "", n = t;
|
|
1594
1594
|
for (; n--; )
|
|
@@ -3050,7 +3050,7 @@ const y5 = {
|
|
|
3050
3050
|
hideWhenDetached: !1,
|
|
3051
3051
|
updatePositionStrategy: "optimized",
|
|
3052
3052
|
prioritizePosition: !1
|
|
3053
|
-
}, [
|
|
3053
|
+
}, [qse, wD] = cn("PopperContent"), wh = /* @__PURE__ */ q({
|
|
3054
3054
|
inheritAttrs: !1,
|
|
3055
3055
|
__name: "PopperContent",
|
|
3056
3056
|
props: /* @__PURE__ */ zw({
|
|
@@ -6105,7 +6105,7 @@ const HP = /* @__PURE__ */ q({
|
|
|
6105
6105
|
_: 3
|
|
6106
6106
|
}, 16)) : Le("", !0);
|
|
6107
6107
|
}
|
|
6108
|
-
}), [
|
|
6108
|
+
}), [Kse, eB] = cn("SelectGroup"), tB = /* @__PURE__ */ q({
|
|
6109
6109
|
__name: "SelectGroup",
|
|
6110
6110
|
props: {
|
|
6111
6111
|
asChild: { type: Boolean },
|
|
@@ -33046,7 +33046,7 @@ const QC = q({
|
|
|
33046
33046
|
onDragstart: this.onDragStart
|
|
33047
33047
|
}, (e = (t = this.$slots).default) === null || e === void 0 ? void 0 : e.call(t));
|
|
33048
33048
|
}
|
|
33049
|
-
}),
|
|
33049
|
+
}), Jse = (t = {}) => {
|
|
33050
33050
|
const e = sh();
|
|
33051
33051
|
return dt(() => {
|
|
33052
33052
|
e.value = new Js(t);
|
|
@@ -41736,7 +41736,7 @@ function dT(t) {
|
|
|
41736
41736
|
function ib() {
|
|
41737
41737
|
return zs(10);
|
|
41738
41738
|
}
|
|
41739
|
-
const r0 = "paragraph", gr = "page", fT = "Extend", yu = "Node", $Q = yu + fT, HQ = "CC", mv = "heading", i0 = "bulletList", gv = "listItem", pT = "taskList", zQ = "taskItem", s0 = "orderedList", Ya = "table", bv = "tableHeader", vv = "tableRow", VQ = "tableCell", yv = "column", xu = "columns", xv = "textBox", Za = "image", Qa = "imageUpload", UQ = "iframe", WQ = "file", wv = "codeBlock", _v = "blockquote", jQ = "audio", qQ = "toc", hT = "video", KQ = "horizontalrule", Ev = "pagination", GQ = [Ya, s0, i0, pT], XQ = [hT, Za], a0 = "link", JQ = "placeholder", YQ = "focus", ZQ = "text", QQ = "text-bubble", eee = "gapCursor", tee = "dropCursor", nee = "characterCount", oee = "hardBreak", ree = "textStyle", iee = "selection", mT = "superText", sb = "configPlan", see = "fontSize", aee = "fontFamily", lee = "bold", uee = "italic", cee = "underline", dee = "strike", fee = "color", pee = "highlight", hee = "moreMark", mee = "textAlign", gee = "indent", bee = "lineHeight", vee = "painter", yee = "clear", Cv = "spellchecker", gT = "fontSizeIncreaseDecrease",
|
|
41739
|
+
const r0 = "paragraph", gr = "page", fT = "Extend", yu = "Node", $Q = yu + fT, HQ = "CC", mv = "heading", i0 = "bulletList", gv = "listItem", pT = "taskList", zQ = "taskItem", s0 = "orderedList", Ya = "table", bv = "tableHeader", vv = "tableRow", VQ = "tableCell", yv = "column", xu = "columns", xv = "textBox", Za = "image", Qa = "imageUpload", UQ = "iframe", WQ = "file", wv = "codeBlock", _v = "blockquote", jQ = "audio", qQ = "toc", hT = "video", KQ = "horizontalrule", Ev = "pagination", GQ = [Ya, s0, i0, pT], XQ = [hT, Za], a0 = "link", JQ = "placeholder", YQ = "focus", ZQ = "text", QQ = "text-bubble", eee = "gapCursor", tee = "dropCursor", nee = "characterCount", oee = "hardBreak", ree = "textStyle", iee = "selection", mT = "superText", sb = "configPlan", see = "fontSize", aee = "fontFamily", lee = "bold", uee = "italic", cee = "underline", dee = "strike", fee = "color", pee = "highlight", hee = "moreMark", mee = "textAlign", gee = "indent", bee = "lineHeight", vee = "painter", yee = "clear", Cv = "spellchecker", gT = "fontSizeIncreaseDecrease", Zse = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
41740
41740
|
__proto__: null,
|
|
41741
41741
|
AUDIO: jQ,
|
|
41742
41742
|
BLOCKQUOTE: _v,
|
|
@@ -43351,11 +43351,14 @@ const Jx = (t) => t.command(({ tr: e }) => {
|
|
|
43351
43351
|
appendTransaction(n, o, r) {
|
|
43352
43352
|
const { tr: i } = r;
|
|
43353
43353
|
let s = !1;
|
|
43354
|
-
|
|
43355
|
-
|
|
43356
|
-
|
|
43357
|
-
|
|
43358
|
-
|
|
43354
|
+
const a = Yx.getState(r);
|
|
43355
|
+
if (n.some((u) => u.getMeta("composition")))
|
|
43356
|
+
return null;
|
|
43357
|
+
if (a || n.some((u) => u.docChanged)) {
|
|
43358
|
+
const u = [];
|
|
43359
|
+
r.doc.descendants((d, p, h, m) => {
|
|
43360
|
+
const { attrs: b } = d, y = u.includes(b.id) ? ab() : b.id || ab();
|
|
43361
|
+
t.includes(d.type.name) && (i.setNodeMarkup(p, void 0, { ...b, id: y, "number-line": m + 1 }), s = !0), u.push(y);
|
|
43359
43362
|
});
|
|
43360
43363
|
}
|
|
43361
43364
|
return s ? i : null;
|
|
@@ -51208,22 +51211,22 @@ Dn.getAdapter = o7.getAdapter;
|
|
|
51208
51211
|
Dn.HttpStatusCode = yb;
|
|
51209
51212
|
Dn.default = Dn;
|
|
51210
51213
|
const {
|
|
51211
|
-
Axios:
|
|
51212
|
-
AxiosError:
|
|
51213
|
-
CanceledError:
|
|
51214
|
-
isCancel:
|
|
51215
|
-
CancelToken:
|
|
51216
|
-
VERSION:
|
|
51217
|
-
all:
|
|
51218
|
-
Cancel:
|
|
51219
|
-
isAxiosError:
|
|
51220
|
-
spread:
|
|
51221
|
-
toFormData:
|
|
51222
|
-
AxiosHeaders:
|
|
51223
|
-
HttpStatusCode:
|
|
51224
|
-
formToJSON:
|
|
51225
|
-
getAdapter:
|
|
51226
|
-
mergeConfig:
|
|
51214
|
+
Axios: nae,
|
|
51215
|
+
AxiosError: oae,
|
|
51216
|
+
CanceledError: rae,
|
|
51217
|
+
isCancel: iae,
|
|
51218
|
+
CancelToken: sae,
|
|
51219
|
+
VERSION: aae,
|
|
51220
|
+
all: lae,
|
|
51221
|
+
Cancel: uae,
|
|
51222
|
+
isAxiosError: cae,
|
|
51223
|
+
spread: dae,
|
|
51224
|
+
toFormData: fae,
|
|
51225
|
+
AxiosHeaders: pae,
|
|
51226
|
+
HttpStatusCode: hae,
|
|
51227
|
+
formToJSON: mae,
|
|
51228
|
+
getAdapter: gae,
|
|
51229
|
+
mergeConfig: bae
|
|
51227
51230
|
} = Dn, Bie = async function(t) {
|
|
51228
51231
|
let e = [];
|
|
51229
51232
|
try {
|
|
@@ -51276,7 +51279,7 @@ class a7 {
|
|
|
51276
51279
|
return this.enabled;
|
|
51277
51280
|
}
|
|
51278
51281
|
}
|
|
51279
|
-
const
|
|
51282
|
+
const vae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
51280
51283
|
__proto__: null,
|
|
51281
51284
|
AI: _oe,
|
|
51282
51285
|
BaseKit: NT,
|
|
@@ -51320,7 +51323,7 @@ const gae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty(
|
|
|
51320
51323
|
Video: LT,
|
|
51321
51324
|
VideoUpload: Koe
|
|
51322
51325
|
}, Symbol.toStringTag, { value: "Module" })), Fie = '<page id="ft6nbbxs" extend="false" pagenumber="1" force="false"><h1 id="tk6n64mj" extend=""false""><strong>Introduction(English)</strong></h1><p id="s864ng1o" extend=""false"">MyMy Editor is open-source document editor based on Vue3 and Tiptap. MyMy Editor provides comprehensive document editing capabilities, supports pagination, supports Markdown syntax, offers basic rich text editing functions, allows for the insertion of various node types in multiple formats, provides a variety of practical tools, and supports setting page styles. It also supports exporting in various formats, printing and print preview, block-level document editing, adding custom extensions, multi-language settings, and a dark theme.</p><h1 id="jm9johtz" extend=""false""><strong>소개(국문)</strong></h1><p id="0qei01hl" extend=""false"">마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.마이마이 에디터는 Vue3과 Tiptap을 기반으로 한 오픈소스 문서 편집기입니다. 마이마이 에디터는 포괄적인 문서 편집 기능을 제공하며, 페이지네이션, 마크다운 구문 지원, 기본적인 리치 텍스트 편집 기능, 다양한 형식의 다양한 노드 유형 삽입, 다양한 실용적인 도구 제공, 페이지 스타일 설정 지원 등을 제공합니다. 또한 다양한 형식으로 내보내기, 인쇄 및 인쇄 미리보기, 블록 수준의 문서 편집, 사용자 지정 확장 추가, 다국어 설정 및 다크 테마를 지원합니다.</p><blockquote class="blockquote"><p id="nekf7yi0" extend="false"><span style="color: rgb(115, 209, 61)"><strong><em>Make by VDC</em></strong></span></p></blockquote></page>';
|
|
51323
|
-
function
|
|
51326
|
+
function yae() {
|
|
51324
51327
|
const t = window.localStorage.getItem("content"), e = H(t || Fie), n = Z(() => [
|
|
51325
51328
|
NT.configure({
|
|
51326
51329
|
placeholder: {
|
|
@@ -52072,18 +52075,28 @@ function u7(t) {
|
|
|
52072
52075
|
return t.replace(/<\/?([a-zA-Z0-9-]+)([^>]*)>/g, (e, n) => Qie.includes(n.toLowerCase()) ? e : e.replace(/</g, "<").replace(/>/g, ">"));
|
|
52073
52076
|
}
|
|
52074
52077
|
const Tr = (t, e, n) => {
|
|
52075
|
-
if (typeof t == "string" && (t = u7(t), n === tt.PLAIN_TEXT))
|
|
52076
|
-
return t.replace(/\n/g, "<br>");
|
|
52077
|
-
if (!e || typeof t == "object") return t;
|
|
52078
|
+
if (typeof t == "object" || (typeof t == "string" && (t = u7(t), t = ese(t)), !e || n === tt.PLAIN_TEXT)) return t;
|
|
52078
52079
|
const o = document.createElement("div");
|
|
52079
|
-
return o.innerHTML = t, o
|
|
52080
|
-
|
|
52081
|
-
|
|
52082
|
-
|
|
52083
|
-
|
|
52084
|
-
|
|
52085
|
-
|
|
52086
|
-
|
|
52080
|
+
return o.innerHTML = t, tse(o), o.innerHTML;
|
|
52081
|
+
};
|
|
52082
|
+
function ese(t) {
|
|
52083
|
+
if (/<p[\s>]/.test(t)) return t;
|
|
52084
|
+
const e = t.split(/\r?\n/), n = document.createElement("div");
|
|
52085
|
+
return e.forEach((o) => {
|
|
52086
|
+
const r = document.createElement("p");
|
|
52087
|
+
r.textContent = o.trim() ? o.trim() : "", n.appendChild(r);
|
|
52088
|
+
}), n.innerHTML;
|
|
52089
|
+
}
|
|
52090
|
+
function tse(t) {
|
|
52091
|
+
t.querySelectorAll("p").forEach((e) => {
|
|
52092
|
+
const n = [];
|
|
52093
|
+
e.querySelectorAll("button.super-text").forEach((o) => {
|
|
52094
|
+
const r = o.getAttribute("data-text") || "", i = String(r).replace(/<\/p>\s*<p>/g, "<br/>").replace(/<\/?p>/g, ""), s = document.createElement("p");
|
|
52095
|
+
s.innerHTML = `{${i}}`, s.setAttribute("class", "text-red-500"), n.push(s), o.remove();
|
|
52096
|
+
}), n.forEach((o) => e.before(o)), e.innerHTML = e.innerHTML.trim();
|
|
52097
|
+
});
|
|
52098
|
+
}
|
|
52099
|
+
const Rw = (t) => {
|
|
52087
52100
|
if (typeof t == "string" && (t = u7(t)), typeof t == "object") return t;
|
|
52088
52101
|
const e = document.createElement("div");
|
|
52089
52102
|
return e.innerHTML = t, e.querySelectorAll("p").forEach((n) => {
|
|
@@ -52106,12 +52119,12 @@ const Tr = (t, e, n) => {
|
|
|
52106
52119
|
setup(t) {
|
|
52107
52120
|
const e = t;
|
|
52108
52121
|
return (n, o) => (I(), xe("div", {
|
|
52109
|
-
class: Ze(g(Xe)(g(
|
|
52122
|
+
class: Ze(g(Xe)(g(nse)({ variant: e.variant }), e.class))
|
|
52110
52123
|
}, [
|
|
52111
52124
|
ie(n.$slots, "default")
|
|
52112
52125
|
], 2));
|
|
52113
52126
|
}
|
|
52114
|
-
}),
|
|
52127
|
+
}), nse = l2(
|
|
52115
52128
|
"inline-flex items-center rounded-full border px-2.5 py-0.5 font-semibold transition-colors focus:outline-none focus:ring-2 focus:ring-ring focus:ring-offset-2",
|
|
52116
52129
|
{
|
|
52117
52130
|
variants: {
|
|
@@ -52126,10 +52139,10 @@ const Tr = (t, e, n) => {
|
|
|
52126
52139
|
variant: "default"
|
|
52127
52140
|
}
|
|
52128
52141
|
}
|
|
52129
|
-
),
|
|
52142
|
+
), ose = {
|
|
52130
52143
|
id: "super-text-view-wrapper",
|
|
52131
52144
|
class: "relative w-[32%]"
|
|
52132
|
-
},
|
|
52145
|
+
}, rse = ["index", "book-mark-id", "line-id", "onMouseover"], ise = ["innerHTML"], sse = /* @__PURE__ */ q({
|
|
52133
52146
|
__name: "SuperTextView",
|
|
52134
52147
|
props: {
|
|
52135
52148
|
editor: AC
|
|
@@ -52275,7 +52288,7 @@ const Tr = (t, e, n) => {
|
|
|
52275
52288
|
};
|
|
52276
52289
|
return (R, P) => {
|
|
52277
52290
|
const N = vn;
|
|
52278
|
-
return I(), xe("div",
|
|
52291
|
+
return I(), xe("div", ose, [
|
|
52279
52292
|
(I(!0), xe(et, null, $t(r.value, (W, X) => {
|
|
52280
52293
|
var ne;
|
|
52281
52294
|
return I(), xe("div", {
|
|
@@ -52309,7 +52322,7 @@ const Tr = (t, e, n) => {
|
|
|
52309
52322
|
se("div", {
|
|
52310
52323
|
class: "super-text-lines",
|
|
52311
52324
|
innerHTML: W.text
|
|
52312
|
-
}, null, 8,
|
|
52325
|
+
}, null, 8, ise),
|
|
52313
52326
|
B(N, {
|
|
52314
52327
|
name: "triangle",
|
|
52315
52328
|
class: Ze(["absolute top-1.5 rotate-90 w-3 h-3 right-0", W.elementId ? "text-black" : "text-red-500"])
|
|
@@ -52317,7 +52330,7 @@ const Tr = (t, e, n) => {
|
|
|
52317
52330
|
]),
|
|
52318
52331
|
_: 2
|
|
52319
52332
|
}, 1032, ["class", "onDblclick"])
|
|
52320
|
-
], 46,
|
|
52333
|
+
], 46, rse);
|
|
52321
52334
|
}), 128)),
|
|
52322
52335
|
!g(l) && a.value ? (I(), $(pd, {
|
|
52323
52336
|
key: 0,
|
|
@@ -52332,10 +52345,10 @@ const Tr = (t, e, n) => {
|
|
|
52332
52345
|
]);
|
|
52333
52346
|
};
|
|
52334
52347
|
}
|
|
52335
|
-
}),
|
|
52348
|
+
}), ase = /* @__PURE__ */ ns(sse, [["__scopeId", "data-v-e7906d34"]]), lse = {
|
|
52336
52349
|
id: "super-text-view-wrapper",
|
|
52337
52350
|
class: "relative w-[32%]"
|
|
52338
|
-
},
|
|
52351
|
+
}, use = ["index", "book-mark-id", "line-id", "onMouseover"], cse = ["innerHTML"], dse = /* @__PURE__ */ q({
|
|
52339
52352
|
__name: "SuperTextViewComment",
|
|
52340
52353
|
props: {
|
|
52341
52354
|
editor: {},
|
|
@@ -52482,7 +52495,7 @@ const Tr = (t, e, n) => {
|
|
|
52482
52495
|
};
|
|
52483
52496
|
return (R, P) => {
|
|
52484
52497
|
const N = vn;
|
|
52485
|
-
return I(), xe("div",
|
|
52498
|
+
return I(), xe("div", lse, [
|
|
52486
52499
|
(I(!0), xe(et, null, $t(r.value, (W, X) => {
|
|
52487
52500
|
var ne;
|
|
52488
52501
|
return I(), xe("div", {
|
|
@@ -52516,7 +52529,7 @@ const Tr = (t, e, n) => {
|
|
|
52516
52529
|
se("div", {
|
|
52517
52530
|
class: "super-text-lines",
|
|
52518
52531
|
innerHTML: W.text
|
|
52519
|
-
}, null, 8,
|
|
52532
|
+
}, null, 8, cse),
|
|
52520
52533
|
B(N, {
|
|
52521
52534
|
name: "triangle",
|
|
52522
52535
|
class: Ze(["absolute top-1.5 rotate-90 w-3 h-3 right-0", W.elementId ? "text-black" : "text-red-500"])
|
|
@@ -52524,7 +52537,7 @@ const Tr = (t, e, n) => {
|
|
|
52524
52537
|
]),
|
|
52525
52538
|
_: 2
|
|
52526
52539
|
}, 1032, ["class", "onDblclick"])
|
|
52527
|
-
], 46,
|
|
52540
|
+
], 46, use);
|
|
52528
52541
|
}), 128)),
|
|
52529
52542
|
!g(l) && a.value && !R.disableSuperInput ? (I(), $(pd, {
|
|
52530
52543
|
key: 0,
|
|
@@ -52539,7 +52552,7 @@ const Tr = (t, e, n) => {
|
|
|
52539
52552
|
]);
|
|
52540
52553
|
};
|
|
52541
52554
|
}
|
|
52542
|
-
}),
|
|
52555
|
+
}), fse = /* @__PURE__ */ ns(dse, [["__scopeId", "data-v-2aada4ff"]]), d7 = (t) => {
|
|
52543
52556
|
t = t.replace(/\s*style="[^"]*"/g, "");
|
|
52544
52557
|
const e = t.match(/<!--StartFragment-->([\s\S]*?)<!--EndFragment-->/), o = (e ? e[1] : t).replace(/<br\s*\/?>/gi, `
|
|
52545
52558
|
`).split(/\r?\n/), r = [];
|
|
@@ -52557,8 +52570,8 @@ const Tr = (t, e, n) => {
|
|
|
52557
52570
|
/^<(?!p\b)[^>]+>/i.test(s) ? r.push(`<p>${s}</p>`) : r.push(s);
|
|
52558
52571
|
}
|
|
52559
52572
|
return r.join("");
|
|
52560
|
-
},
|
|
52561
|
-
const e = Z(() =>
|
|
52573
|
+
}, pse = io(), gd = (t) => {
|
|
52574
|
+
const e = Z(() => pse.state.spellCheck);
|
|
52562
52575
|
Be(
|
|
52563
52576
|
() => e.value,
|
|
52564
52577
|
(n) => {
|
|
@@ -52568,13 +52581,13 @@ const Tr = (t, e, n) => {
|
|
|
52568
52581
|
immediate: !0
|
|
52569
52582
|
}
|
|
52570
52583
|
);
|
|
52571
|
-
},
|
|
52584
|
+
}, hse = {
|
|
52572
52585
|
id: "editor-container-comment",
|
|
52573
52586
|
class: "flex flex-col"
|
|
52574
|
-
},
|
|
52587
|
+
}, mse = { class: "flex flex-1" }, gse = {
|
|
52575
52588
|
id: "editor-panel",
|
|
52576
52589
|
class: "flex-1"
|
|
52577
|
-
},
|
|
52590
|
+
}, bse = /* @__PURE__ */ q({
|
|
52578
52591
|
__name: "EditorComment",
|
|
52579
52592
|
props: {
|
|
52580
52593
|
isMobile: { type: Boolean },
|
|
@@ -52741,16 +52754,16 @@ const Tr = (t, e, n) => {
|
|
|
52741
52754
|
(T) => {
|
|
52742
52755
|
A(T);
|
|
52743
52756
|
}
|
|
52744
|
-
), gd(x), e({ editor: x }), (T, k) => (I(), xe("div",
|
|
52745
|
-
se("div",
|
|
52746
|
-
Hr(B(
|
|
52757
|
+
), gd(x), e({ editor: x }), (T, k) => (I(), xe("div", hse, [
|
|
52758
|
+
se("div", mse, [
|
|
52759
|
+
Hr(B(fse, {
|
|
52747
52760
|
"disable-super-input": T.disableSuperInput,
|
|
52748
52761
|
editor: g(x),
|
|
52749
52762
|
class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7] dark:bg-black"
|
|
52750
52763
|
}, null, 8, ["disable-super-input", "editor"]), [
|
|
52751
52764
|
[qi, T.isOpenSuperView]
|
|
52752
52765
|
]),
|
|
52753
|
-
se("div",
|
|
52766
|
+
se("div", gse, [
|
|
52754
52767
|
B(Nv, {
|
|
52755
52768
|
ref_key: "selectContextMenuRef",
|
|
52756
52769
|
ref: _,
|
|
@@ -52773,7 +52786,7 @@ const Tr = (t, e, n) => {
|
|
|
52773
52786
|
]));
|
|
52774
52787
|
}
|
|
52775
52788
|
});
|
|
52776
|
-
function
|
|
52789
|
+
function vse(t, e, n = !1, o = 200) {
|
|
52777
52790
|
const { height: r } = rR(t), i = H(0), s = H(0), a = H(o), l = H(0), u = async () => {
|
|
52778
52791
|
await Mt();
|
|
52779
52792
|
const d = r.value - 8;
|
|
@@ -52788,7 +52801,7 @@ function gse(t, e, n = !1, o = 200) {
|
|
|
52788
52801
|
minHeightComment: l
|
|
52789
52802
|
};
|
|
52790
52803
|
}
|
|
52791
|
-
const
|
|
52804
|
+
const yse = { class: "flex flex-1" }, xse = {
|
|
52792
52805
|
id: "editor-panel",
|
|
52793
52806
|
class: "flex-1"
|
|
52794
52807
|
}, Wv = /* @__PURE__ */ q({
|
|
@@ -53021,7 +53034,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53021
53034
|
if (!((we = ne == null ? void 0 : ne.storage) != null && we.superText)) return !1;
|
|
53022
53035
|
const { enable: J } = ne.storage.superText, ae = [tt.EDITOR, tt.PLAIN_TEXT].includes(o.mode), ue = o.disabled;
|
|
53023
53036
|
return J && !ae && !ue;
|
|
53024
|
-
}), Y = H(null), le = Z(() => o.mode), { commentHeight: fe, contentHeight: he, minHeight: Re, minHeightComment: De } =
|
|
53037
|
+
}), Y = H(null), le = Z(() => o.mode), { commentHeight: fe, contentHeight: he, minHeight: Re, minHeightComment: De } = vse(
|
|
53025
53038
|
Y,
|
|
53026
53039
|
le,
|
|
53027
53040
|
o.autoHeight,
|
|
@@ -53095,7 +53108,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53095
53108
|
),
|
|
53096
53109
|
style: Vt(N.value)
|
|
53097
53110
|
}, [
|
|
53098
|
-
J.mode === g(tt).REPORT && !J.hideComment ? (I(), $(
|
|
53111
|
+
J.mode === g(tt).REPORT && !J.hideComment ? (I(), $(bse, {
|
|
53099
53112
|
key: 0,
|
|
53100
53113
|
ref_key: "editorCommentRef",
|
|
53101
53114
|
ref: Ve,
|
|
@@ -53123,14 +53136,14 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53123
53136
|
}
|
|
53124
53137
|
)
|
|
53125
53138
|
}, [
|
|
53126
|
-
se("div",
|
|
53127
|
-
Hr(B(
|
|
53139
|
+
se("div", yse, [
|
|
53140
|
+
Hr(B(ase, {
|
|
53128
53141
|
editor: g(ne),
|
|
53129
53142
|
class: "mr-2.5 border border-[#999999] rounded-[3px] bg-[#F2F2F7] dark:bg-black"
|
|
53130
53143
|
}, null, 8, ["editor"]), [
|
|
53131
53144
|
[qi, F.value]
|
|
53132
53145
|
]),
|
|
53133
|
-
se("div",
|
|
53146
|
+
se("div", xse, [
|
|
53134
53147
|
B(Nv, {
|
|
53135
53148
|
ref_key: "selectContextMenuRef",
|
|
53136
53149
|
ref: ye,
|
|
@@ -53154,7 +53167,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53154
53167
|
], 6)) : Le("", !0);
|
|
53155
53168
|
};
|
|
53156
53169
|
}
|
|
53157
|
-
}),
|
|
53170
|
+
}), wse = { class: "flex gap-2 items-center" }, _se = /* @__PURE__ */ q({
|
|
53158
53171
|
__name: "ToolbarFormat",
|
|
53159
53172
|
props: {
|
|
53160
53173
|
editor: {},
|
|
@@ -53205,7 +53218,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53205
53218
|
)
|
|
53206
53219
|
)
|
|
53207
53220
|
}, [
|
|
53208
|
-
se("div",
|
|
53221
|
+
se("div", wse, [
|
|
53209
53222
|
(I(!0), xe(et, null, $t(r.value, (u, d) => {
|
|
53210
53223
|
var p;
|
|
53211
53224
|
return I(), $(or(u.button.component), Ae({
|
|
@@ -53231,7 +53244,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53231
53244
|
])
|
|
53232
53245
|
], 2));
|
|
53233
53246
|
}
|
|
53234
|
-
}), f7 = /* @__PURE__ */ ns(
|
|
53247
|
+
}), f7 = /* @__PURE__ */ ns(_se, [["__scopeId", "data-v-5cf68949"]]), Ese = { class: "flex gap-2 items-center overflow-x-auto" }, Cse = /* @__PURE__ */ q({
|
|
53235
53248
|
__name: "ToolbarMobile",
|
|
53236
53249
|
props: {
|
|
53237
53250
|
editor: {},
|
|
@@ -53282,7 +53295,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53282
53295
|
)
|
|
53283
53296
|
)
|
|
53284
53297
|
}, [
|
|
53285
|
-
se("div",
|
|
53298
|
+
se("div", Ese, [
|
|
53286
53299
|
(I(!0), xe(et, null, $t(r.value, (u, d) => {
|
|
53287
53300
|
var p;
|
|
53288
53301
|
return I(), xe(et, { key: d }, [
|
|
@@ -53319,7 +53332,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53319
53332
|
])
|
|
53320
53333
|
], 2));
|
|
53321
53334
|
}
|
|
53322
|
-
}), p7 = /* @__PURE__ */ ns(
|
|
53335
|
+
}), p7 = /* @__PURE__ */ ns(Cse, [["__scopeId", "data-v-236fec84"]]), Sse = { class: "bg-ed-blue px-1" }, Tse = { class: "bg-ed-blue px-1" }, kse = /* @__PURE__ */ q({
|
|
53323
53336
|
__name: "SelectContextMenuMobile",
|
|
53324
53337
|
props: {
|
|
53325
53338
|
editor: {},
|
|
@@ -53389,7 +53402,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53389
53402
|
onClick: C[0] || (C[0] = (N) => x.editor.commands.toggleSuperInputMoblie())
|
|
53390
53403
|
}, {
|
|
53391
53404
|
default: M(() => [
|
|
53392
|
-
se("span",
|
|
53405
|
+
se("span", Sse, Fe(g(n)("editor.super")), 1)
|
|
53393
53406
|
]),
|
|
53394
53407
|
_: 1
|
|
53395
53408
|
})) : Le("", !0),
|
|
@@ -53398,7 +53411,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53398
53411
|
onClick: C[1] || (C[1] = (N) => x.editor.commands.toggleConfigPlanInput())
|
|
53399
53412
|
}, {
|
|
53400
53413
|
default: M(() => [
|
|
53401
|
-
se("span",
|
|
53414
|
+
se("span", Tse, Fe(g(n)("editor.configPlan")), 1)
|
|
53402
53415
|
]),
|
|
53403
53416
|
_: 1
|
|
53404
53417
|
})) : Le("", !0),
|
|
@@ -53455,7 +53468,7 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53455
53468
|
], 64);
|
|
53456
53469
|
};
|
|
53457
53470
|
}
|
|
53458
|
-
}), jv = /* @__PURE__ */ ns(
|
|
53471
|
+
}), jv = /* @__PURE__ */ ns(kse, [["__scopeId", "data-v-4d192286"]]), Ase = { class: "text-red-500 relative -top-1" }, y0 = /* @__PURE__ */ q({
|
|
53459
53472
|
__name: "EditorFieldName",
|
|
53460
53473
|
props: {
|
|
53461
53474
|
fieldName: {},
|
|
@@ -53478,12 +53491,12 @@ const bse = { class: "flex flex-1" }, vse = {
|
|
|
53478
53491
|
)
|
|
53479
53492
|
)
|
|
53480
53493
|
}, Fe(g(n)), 3),
|
|
53481
|
-
Hr(se("span",
|
|
53494
|
+
Hr(se("span", Ase, " •", 512), [
|
|
53482
53495
|
[qi, r.fieldName.isRequired]
|
|
53483
53496
|
])
|
|
53484
53497
|
]));
|
|
53485
53498
|
}
|
|
53486
|
-
}),
|
|
53499
|
+
}), Ose = /* @__PURE__ */ q({
|
|
53487
53500
|
__name: "EditorCommentMoblie",
|
|
53488
53501
|
props: {
|
|
53489
53502
|
isMobile: { type: Boolean },
|
|
@@ -54367,7 +54380,7 @@ const Kv = /* @__PURE__ */ q({
|
|
|
54367
54380
|
)
|
|
54368
54381
|
)
|
|
54369
54382
|
}, [
|
|
54370
|
-
B(
|
|
54383
|
+
B(Ose, {
|
|
54371
54384
|
ref_key: "editorCommentRef",
|
|
54372
54385
|
ref: X,
|
|
54373
54386
|
mode: te.mode,
|
|
@@ -54473,7 +54486,7 @@ const Kv = /* @__PURE__ */ q({
|
|
|
54473
54486
|
], 64);
|
|
54474
54487
|
};
|
|
54475
54488
|
}
|
|
54476
|
-
}),
|
|
54489
|
+
}), xae = /* @__PURE__ */ q({
|
|
54477
54490
|
__name: "ArticleEditor",
|
|
54478
54491
|
props: {
|
|
54479
54492
|
mode: { default: tt.STRAIGHT },
|
|
@@ -54527,7 +54540,7 @@ const Kv = /* @__PURE__ */ q({
|
|
|
54527
54540
|
"onUpdate:comment": r[1] || (r[1] = (i) => o.$emit("update:comment", i))
|
|
54528
54541
|
}), null, 16));
|
|
54529
54542
|
}
|
|
54530
|
-
}),
|
|
54543
|
+
}), wae = /* @__PURE__ */ q({
|
|
54531
54544
|
__name: "DigitalNewsEditor",
|
|
54532
54545
|
props: {
|
|
54533
54546
|
mode: { default: tt.EDITOR },
|
|
@@ -54937,15 +54950,15 @@ var h7 = { exports: {} };
|
|
|
54937
54950
|
oe.htmlToTokens = w, oe.findMatchingBlocks = R, R.findBestMatch = A, R.createMap = C, R.createToken = b, R.createSegment = k, R.getKeyForToken = x, oe.calculateOperations = P, oe.renderOperations = ne, t !== null ? t.exports = oe : this.htmldiff = oe;
|
|
54938
54951
|
}).call(Sl);
|
|
54939
54952
|
})(h7);
|
|
54940
|
-
var
|
|
54941
|
-
const
|
|
54953
|
+
var Mse = h7.exports;
|
|
54954
|
+
const Nse = /* @__PURE__ */ dF(Mse), Lw = (t, e, n) => {
|
|
54942
54955
|
let o = "";
|
|
54943
54956
|
{
|
|
54944
54957
|
const r = Tr(t, n), i = Tr(e, n);
|
|
54945
|
-
o =
|
|
54958
|
+
o = Nse(r, i, null, null, "button");
|
|
54946
54959
|
}
|
|
54947
54960
|
return o = o.replace(/<del[^>]*>/g, '<mark style="background:#ffa8a8;color:white;">').replace(/<\/del>/g, "</mark>").replace(/<ins[^>]*>/g, '<mark style="background:#42424266;">').replace(/<\/ins>/g, "</mark>"), o;
|
|
54948
|
-
},
|
|
54961
|
+
}, Ise = { class: "border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto" }, Rse = { class: "border border-ed-gray rounded-[5px] p-2.5 h-full" }, Lse = { class: "border border-ed-gray rounded-[5px] p-2.5 flex-1 overflow-y-auto" }, Dse = /* @__PURE__ */ q({
|
|
54949
54962
|
__name: "ArticleCompareEditor",
|
|
54950
54963
|
props: {
|
|
54951
54964
|
originalData: {},
|
|
@@ -55003,7 +55016,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
|
|
|
55003
55016
|
"title-bar": b.originalData.titleBar,
|
|
55004
55017
|
class: "text-[12px] mb-[3px]"
|
|
55005
55018
|
}, null, 8, ["title-bar"])) : Le("", !0),
|
|
55006
|
-
se("div",
|
|
55019
|
+
se("div", Ise, [
|
|
55007
55020
|
B(vc, {
|
|
55008
55021
|
"editor-class": "h-full",
|
|
55009
55022
|
mode: g(tt).REPORT,
|
|
@@ -55024,7 +55037,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
|
|
|
55024
55037
|
default: M(() => {
|
|
55025
55038
|
var x, C, S, _;
|
|
55026
55039
|
return [
|
|
55027
|
-
se("div",
|
|
55040
|
+
se("div", Rse, [
|
|
55028
55041
|
B(vc, {
|
|
55029
55042
|
"editor-class": "h-full",
|
|
55030
55043
|
mode: g(tt).REPORT,
|
|
@@ -55054,7 +55067,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
|
|
|
55054
55067
|
class: "text-[12px] mb-[3px]",
|
|
55055
55068
|
"custom-class": "bg-[#34c759]"
|
|
55056
55069
|
}, null, 8, ["title-bar"])) : Le("", !0),
|
|
55057
|
-
se("div",
|
|
55070
|
+
se("div", Lse, [
|
|
55058
55071
|
B(vc, {
|
|
55059
55072
|
"editor-class": "h-full",
|
|
55060
55073
|
mode: g(tt).REPORT,
|
|
@@ -55087,7 +55100,7 @@ const Ose = /* @__PURE__ */ dF(Ase), Lw = (t, e, n) => {
|
|
|
55087
55100
|
], 64);
|
|
55088
55101
|
};
|
|
55089
55102
|
}
|
|
55090
|
-
}),
|
|
55103
|
+
}), _ae = /* @__PURE__ */ ns(Dse, [["__scopeId", "data-v-d4041208"]]), Pse = (t, e) => {
|
|
55091
55104
|
let n = null;
|
|
55092
55105
|
return t.state.doc.descendants((o, r) => {
|
|
55093
55106
|
if (o.type.name === "paragraph" && Number(o.attrs["number-line"]) === e)
|
|
@@ -55107,7 +55120,7 @@ async function m7({
|
|
|
55107
55120
|
return e.view.dispatch(u), !1;
|
|
55108
55121
|
}
|
|
55109
55122
|
}), await Mt(), !t) return;
|
|
55110
|
-
const n =
|
|
55123
|
+
const n = Pse(e, t);
|
|
55111
55124
|
if (!n) return;
|
|
55112
55125
|
const { node: o, pos: r } = n, i = e.state.tr.setNodeMarkup(r, void 0, {
|
|
55113
55126
|
...o.attrs,
|
|
@@ -55115,7 +55128,7 @@ async function m7({
|
|
|
55115
55128
|
});
|
|
55116
55129
|
e.view.dispatch(i), await Mt(), e.view.nodeDOM(r).scrollIntoView({ behavior: "smooth" });
|
|
55117
55130
|
}
|
|
55118
|
-
const
|
|
55131
|
+
const Bse = /* @__PURE__ */ q({
|
|
55119
55132
|
__name: "SuperViewMobileSuperEditor",
|
|
55120
55133
|
props: {
|
|
55121
55134
|
isMobile: { type: Boolean },
|
|
@@ -55305,7 +55318,7 @@ const Dse = /* @__PURE__ */ q({
|
|
|
55305
55318
|
], 64);
|
|
55306
55319
|
};
|
|
55307
55320
|
}
|
|
55308
|
-
}),
|
|
55321
|
+
}), Eae = /* @__PURE__ */ q({
|
|
55309
55322
|
__name: "SuperViewMobileEditor",
|
|
55310
55323
|
props: {
|
|
55311
55324
|
isMobile: { type: Boolean },
|
|
@@ -55604,7 +55617,7 @@ const Dse = /* @__PURE__ */ q({
|
|
|
55604
55617
|
)
|
|
55605
55618
|
)
|
|
55606
55619
|
}, [
|
|
55607
|
-
B(
|
|
55620
|
+
B(Bse, {
|
|
55608
55621
|
mode: ye.mode,
|
|
55609
55622
|
"field-name-super": ye.fieldNameSuper,
|
|
55610
55623
|
extensions: ye.extensions,
|
|
@@ -55633,7 +55646,7 @@ const Dse = /* @__PURE__ */ q({
|
|
|
55633
55646
|
], 64);
|
|
55634
55647
|
};
|
|
55635
55648
|
}
|
|
55636
|
-
}),
|
|
55649
|
+
}), Fse = {
|
|
55637
55650
|
"editor.remove": "Remove",
|
|
55638
55651
|
"editor.copy": "Copy",
|
|
55639
55652
|
"editor.words": "WORDS",
|
|
@@ -55830,7 +55843,7 @@ const Dse = /* @__PURE__ */ q({
|
|
|
55830
55843
|
"editor.alert": "Super has been changed. Super ID will be deleted.",
|
|
55831
55844
|
"editor.alertConfirm": "Confirm",
|
|
55832
55845
|
"editor.alertYes": "OK"
|
|
55833
|
-
},
|
|
55846
|
+
}, $se = {
|
|
55834
55847
|
"editor.remove": "제거",
|
|
55835
55848
|
"editor.copy": "복사",
|
|
55836
55849
|
"editor.words": "낱말",
|
|
@@ -56027,42 +56040,42 @@ const Dse = /* @__PURE__ */ q({
|
|
|
56027
56040
|
"editor.alert": "수퍼가 변경되었습니다. 수퍼아이디를 삭제합니다.",
|
|
56028
56041
|
"editor.alertConfirm": "확인",
|
|
56029
56042
|
"editor.alertYes": "확인"
|
|
56030
|
-
},
|
|
56043
|
+
}, Hse = jH({
|
|
56031
56044
|
legacy: !1,
|
|
56032
56045
|
locale: "en",
|
|
56033
56046
|
fallbackLocale: "en",
|
|
56034
56047
|
messages: {
|
|
56035
|
-
en:
|
|
56036
|
-
ko:
|
|
56048
|
+
en: Fse,
|
|
56049
|
+
ko: $se
|
|
56037
56050
|
}
|
|
56038
56051
|
});
|
|
56039
56052
|
z_();
|
|
56040
|
-
const
|
|
56053
|
+
const Cae = {
|
|
56041
56054
|
install(t) {
|
|
56042
|
-
t.use(
|
|
56055
|
+
t.use(Hse), t.component("vdc-editor", Wv);
|
|
56043
56056
|
}
|
|
56044
|
-
},
|
|
56045
|
-
function
|
|
56046
|
-
|
|
56057
|
+
}, zse = Jn(ro.RENDER_SUPER_TEXT);
|
|
56058
|
+
function Sae() {
|
|
56059
|
+
zse.emit({
|
|
56047
56060
|
action: "render"
|
|
56048
56061
|
});
|
|
56049
56062
|
}
|
|
56050
56063
|
export {
|
|
56051
|
-
|
|
56052
|
-
|
|
56064
|
+
_ae as ArticleCompareEditor,
|
|
56065
|
+
xae as ArticleEditor,
|
|
56053
56066
|
Wv as CoreEditor,
|
|
56054
|
-
|
|
56067
|
+
wae as DigitalNewsEditor,
|
|
56055
56068
|
tt as EditorMode,
|
|
56056
|
-
|
|
56057
|
-
|
|
56058
|
-
|
|
56059
|
-
|
|
56060
|
-
|
|
56061
|
-
|
|
56062
|
-
|
|
56063
|
-
|
|
56064
|
-
|
|
56065
|
-
|
|
56069
|
+
Cae as SBSEditorPlugin,
|
|
56070
|
+
Eae as SuperViewMobileEditor,
|
|
56071
|
+
Cae as default,
|
|
56072
|
+
Fse as enUS,
|
|
56073
|
+
vae as extension,
|
|
56074
|
+
$se as koKR,
|
|
56075
|
+
Zse as nodeNames,
|
|
56076
|
+
Sae as updateSuperTextView,
|
|
56077
|
+
yae as useConfigTiptap,
|
|
56078
|
+
Jse as useEditor,
|
|
56066
56079
|
io as useTiptapStore
|
|
56067
56080
|
};
|
|
56068
56081
|
//# sourceMappingURL=vdc-editor.mjs.map
|