hexagon-editor 0.1.1 → 0.1.3
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 +4 -6
- package/dist/MarkdownEditor.vue.d.ts.map +1 -1
- package/dist/{MarkdownEditorLinkForm-mq-BVYM_.js → MarkdownEditorLinkForm-C7CGgA83.js} +74 -79
- package/dist/_plugin-vue_export-helper-CHgC5LLL.js +9 -0
- package/dist/components/MarkdownEditorToolbar.vue.d.ts +2 -2
- package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
- package/dist/core/index.d.ts +3 -1
- package/dist/core/index.d.ts.map +1 -1
- package/dist/core/markup-commands.d.ts +31 -0
- package/dist/core/markup-commands.d.ts.map +1 -0
- package/dist/core/markup-editor.d.ts +2 -0
- package/dist/core/markup-editor.d.ts.map +1 -1
- package/dist/core.js +27 -26
- package/dist/forms.js +1 -1
- package/dist/index.css +1 -1
- package/dist/index.js +780 -751
- package/dist/{schema-dynamic-modifier-Dhf0m6tE.js → markup-commands-BckOOKIe.js} +3156 -2922
- package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/renderer.css +1 -0
- package/dist/renderer.js +115 -114
- package/package.json +1 -1
- /package/dist/{schema-dynamic-modifier.css → markup-commands.css} +0 -0
package/dist/index.js
CHANGED
|
@@ -1,61 +1,62 @@
|
|
|
1
|
-
import { Lang as
|
|
2
|
-
import { cn as
|
|
3
|
-
import { getMarkdownEditorMessages as
|
|
4
|
-
import { markdownEditorMessages as
|
|
5
|
-
import { n as
|
|
6
|
-
import { A as
|
|
7
|
-
import { c4 as
|
|
8
|
-
import { B as
|
|
9
|
-
import { c as
|
|
10
|
-
import { defineComponent as
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
1
|
+
import { Lang as Za, configure as Ka, getConfig as Xa, subscribeConfigure as Ja } from "./configure.js";
|
|
2
|
+
import { cn as el } from "./classname.js";
|
|
3
|
+
import { getMarkdownEditorMessages as Ke } from "./i18n.js";
|
|
4
|
+
import { markdownEditorMessages as al } from "./i18n.js";
|
|
5
|
+
import { n as Xe, v as ge, t as Je, r as _e, o as et, p as tt } from "./markup-commands-BckOOKIe.js";
|
|
6
|
+
import { A as nl, E as ol, a as il, b as sl, c as rl, L as dl, L as ul, M as ml, e as cl, f as vl, P as gl, g as fl, S as bl, h as kl, i as wl, j as hl, k as yl, W as Ml, l as Cl, m as pl, s as xl, q as Ll, u as Bl } from "./markup-commands-BckOOKIe.js";
|
|
7
|
+
import { c4 as at, c5 as lt, c6 as nt, c7 as ot, c8 as it } from "./base-Bnv2-Te4.js";
|
|
8
|
+
import { B as El, g as Hl, h as $l, i as Vl, k as Sl, n as Al, C as Pl, o as zl, p as Fl, q as Nl, r as Rl, D as Dl, E as Il, G as ql, H as Ol, u as jl, v as Ul, w as Wl, x as Ql, y as Gl, z as Yl, I as Zl, A as Kl, J as Xl, L as Jl, K as _l, M as en, P as tn, Q as an, R as ln, S as nn, T as on, U as sn, V as rn, X as dn, Y as un, c9 as mn, Z as cn, _ as vn, $ as gn, a0 as fn, a1 as bn, a2 as kn, a3 as wn, a4 as hn, a5 as yn, a6 as Mn, ca as Cn, cb as pn, cc as xn, cd as Ln, c as Bn, ce as Tn, ac as En, ad as Hn, af as $n, a as Vn, b as Sn, ak as An, d as Pn, e as zn, f as Fn, an as Nn, ao as Rn, ap as Dn, aq as In, ar as qn, cf as On, cg as jn, ch as Un, ci as Wn, cj as Qn, as as Gn, at as Yn, au as Zn, av as Kn, aw as Xn, ax as Jn, ay as _n, az as eo, aA as to, aB as ao, aC as lo, aD as no, aF as oo, aG as io, aI as so, aJ as ro, ck as uo, aN as mo, aP as co, aT as vo, aU as go, aV as fo, aW as bo, aX as ko, aY as wo, j as ho, l as yo, a_ as Mo, a$ as Co, m as po, b7 as xo, b8 as Lo, bd as Bo, be as To, bh as Eo, bi as Ho, bl as $o, bn as Vo, bo as So, bp as Ao, bz as Po, bA as zo, bB as Fo, bC as No, bD as Ro, s as Do, bE as Io, bF as qo, bL as Oo, t as jo, bN as Uo, bO as Wo, bQ as Qo, bR as Go, bS as Yo, bT as Zo, bU as Ko, bV as Xo, bX as Jo, bY as _o, b$ as ei, c0 as ti, c1 as ai } from "./base-Bnv2-Te4.js";
|
|
9
|
+
import { c as ni, g as oi } from "./optional-renderers-BalvqqvY.js";
|
|
10
|
+
import { defineComponent as J, openBlock as r, createElementBlock as m, ref as h, Fragment as F, createElementVNode as f, withModifiers as w, createVNode as C, toDisplayString as H, createCommentVNode as E, renderList as oe, createStaticVNode as st, unref as c, renderSlot as fe, onBeforeUnmount as be, nextTick as ne, getCurrentInstance as He, computed as Te, watch as ae, onMounted as rt, createBlock as X, withCtx as dt, normalizeProps as ut, guardReactiveProps as mt, Teleport as ct, normalizeClass as vt, readonly as le } from "vue";
|
|
11
|
+
import { _ } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
12
|
+
import { getToolbarConfig as gt, isToolbarItemEnabled as S, isToolbarItemActive as G, normalizeToolbarItem as ft, isToolbarItemAvailable as bt } from "./toolbar.js";
|
|
13
|
+
import { commonmarkToolbarConfig as si, createToolbarConfig as ri, createToolbarGroup as di, createToolbarItem as ui, defaultToolbarConfig as mi, fullToolbarConfig as ci, markdownEditorToolbarItemIds as vi, minimalToolbarConfig as gi, zeroToolbarConfig as fi } from "./toolbar.js";
|
|
14
|
+
import { a as kt, M as wt } from "./MarkdownEditorLinkForm-C7CGgA83.js";
|
|
15
|
+
import { _ as ki, b as wi } from "./MarkdownEditorLinkForm-C7CGgA83.js";
|
|
15
16
|
import "./katex-ByXcxnHy.js";
|
|
16
|
-
import { C as
|
|
17
|
-
import { C as
|
|
18
|
-
import { B as
|
|
19
|
-
import './index.css';const
|
|
20
|
-
`,
|
|
21
|
-
`,
|
|
22
|
-
`,
|
|
23
|
-
`,
|
|
24
|
-
`,
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
17
|
+
import { C as yi, D as Mi, F as Ci, Z as pi } from "./full-C-o2lPBX.js";
|
|
18
|
+
import { C as Li, F as Bi } from "./full-specs-Cl-ODShc.js";
|
|
19
|
+
import { B as Ei, a as Hi, b as $i, c as Vi, d as Si, C as Ai, e as Pi, f as zi, D as Fi, g as Ni, h as Ri, H as Di, i as Ii, I as qi, j as Oi, L as ji, k as Ui, T as Wi, l as Qi, m as Gi, n as Yi, o as Zi, r as Ki, v as Xi, y as Ji, M as _i, O as es, R as ts, S as as, W as ls, Z as ns } from "./heading-specs-D7Bj4aIM.js";
|
|
20
|
+
import './index.css';const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.47 4.72a.75.75 0 0 0 0 1.06l3 3a.75.75 0 0 0 1.06-1.06L4.81 6H9a3.25 3.25 0 0 1 0 6.5H8A.75.75 0 0 0 8 14h1a4.75 4.75 0 1 0 0-9.5H4.81l1.72-1.72a.75.75 0 0 0-1.06-1.06z" clip-rule="evenodd"/></svg>
|
|
21
|
+
`, yt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M13.53 4.72a.75.75 0 0 1 0 1.06l-3 3a.75.75 0 1 1-1.06-1.06L11.19 6H7a3.25 3.25 0 0 0 0 6.5h1A.75.75 0 0 1 8 14H7a4.75 4.75 0 1 1 0-9.5h4.19L9.47 2.78a.75.75 0 0 1 1.06-1.06z" clip-rule="evenodd"/></svg>
|
|
22
|
+
`, Mt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M4.25 2.25A.75.75 0 0 0 3.5 3v10c0 .414.336.75.75.75H9.5a3.25 3.25 0 0 0 1.477-6.146A3.25 3.25 0 0 0 8.5 2.25zm3.5 5a1.75 1.75 0 1 0 0-3.5h-2v3.5zm-2 1.5v3.5h3a1.75 1.75 0 1 0 0-3.5z" clip-rule="evenodd"/></svg>
|
|
23
|
+
`, Ct = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.5 5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5m3.25-2a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8M3.75 8a1.25 1.25 0 1 1-2.5 0 1.25 1.25 0 0 1 2.5 0M2.5 13.5a1.25 1.25 0 1 0 0-2.5 1.25 1.25 0 0 0 0 2.5" clip-rule="evenodd"/></svg>
|
|
24
|
+
`, pt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M2.97 5.47a.75.75 0 0 1 1.06 0L8 9.44l3.97-3.97a.75.75 0 1 1 1.06 1.06l-4.5 4.5a.75.75 0 0 1-1.06 0l-4.5-4.5a.75.75 0 0 1 0-1.06" clip-rule="evenodd"/></svg>
|
|
25
|
+
`, xt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M10.218 3.216a.75.75 0 0 0-1.436-.431l-3 10a.75.75 0 0 0 1.436.43zM4.53 4.97a.75.75 0 0 1 0 1.06L2.56 8l1.97 1.97a.75.75 0 0 1-1.06 1.06l-2.5-2.5a.75.75 0 0 1 0-1.06l2.5-2.5a.75.75 0 0 1 1.06 0m6.94 6.06a.75.75 0 0 1 0-1.06L13.44 8l-1.97-1.97a.75.75 0 0 1 1.06-1.06l2.5 2.5a.75.75 0 0 1 0 1.06l-2.5 2.5a.75.75 0 0 1-1.06 0" clip-rule="evenodd"/></svg>
|
|
26
|
+
`, Lt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M4.312 4.29a.764.764 0 0 1 1.103-.62.75.75 0 1 0 .67-1.34 2.264 2.264 0 0 0-3.268 1.836L2.706 5.5H1.75a.75.75 0 0 0 0 1.5h.83l-.392 4.71a.764.764 0 0 1-1.103.62.75.75 0 0 0-.67 1.34 2.264 2.264 0 0 0 3.268-1.836L4.086 7H5.25a.75.75 0 1 0 0-1.5H4.21zm6.014 2.23a.75.75 0 0 0-1.152.96l.85 1.02-.85 1.02a.75.75 0 0 0 1.152.96L11 9.672l.674.808a.75.75 0 0 0 1.152-.96l-.85-1.02.85-1.02a.75.75 0 0 0-1.152-.96L11 7.328zM8.02 4.55a.75.75 0 0 1 .43.969l-.145.378a7.25 7.25 0 0 0 0 5.205l.145.378a.75.75 0 0 1-1.4.539l-.145-.378a8.75 8.75 0 0 1 0-6.282l.145-.378a.75.75 0 0 1 .97-.431m5.961 0a.75.75 0 0 1 .97.43l.145.379a8.75 8.75 0 0 1 0 6.282l-.146.378a.75.75 0 1 1-1.4-.538l.146-.379a7.25 7.25 0 0 0 0-5.205l-.146-.378a.75.75 0 0 1 .431-.97" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
|
27
|
+
`, Bt = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
|
|
27
28
|
<circle cx="8" cy="8" r="2.25"/>
|
|
28
29
|
<path d="M6.7 1.5h2.6l.4 1.6c.3.1.6.3.9.5l1.6-.5 1.3 2.2-1.2 1.1v1.2l1.2 1.1-1.3 2.2-1.6-.5-.9.5-.4 1.6H6.7l-.4-1.6-.9-.5-1.6.5-1.3-2.2 1.2-1.1V6.4L2.5 5.3l1.3-2.2 1.6.5.9-.5.4-1.6Z"/>
|
|
29
30
|
</svg>
|
|
30
|
-
`,
|
|
31
|
-
`,
|
|
32
|
-
`,
|
|
33
|
-
`,
|
|
34
|
-
`,
|
|
31
|
+
`, Tt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M1.75 8a.75.75 0 0 1 .75-.75h11a.75.75 0 0 1 0 1.5h-11A.75.75 0 0 1 1.75 8" clip-rule="evenodd"/></svg>
|
|
32
|
+
`, Et = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M11.5 3h-7A1.5 1.5 0 0 0 3 4.5v5.027l.962-.7a1.75 1.75 0 0 1 2.079.016l.928.696 2.368-2.03a1.75 1.75 0 0 1 2.325.043L13 8.787V4.5A1.5 1.5 0 0 0 11.5 3m3 7.498V4.5a3 3 0 0 0-3-3h-7a3 3 0 0 0-3 3v7a3 3 0 0 0 3 3h7a3 3 0 0 0 3-3zm-1.5.33-2.355-2.174a.25.25 0 0 0-.332-.006L7.488 11.07l-.457.392-.481-.361-1.41-1.057a.25.25 0 0 0-.296-.002L3 11.381v.119A1.5 1.5 0 0 0 4.5 13h7a1.5 1.5 0 0 0 1.5-1.5zM7.5 6a1.5 1.5 0 1 1-3 0 1.5 1.5 0 0 1 3 0" clip-rule="evenodd"/></svg>
|
|
33
|
+
`, Ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.25 2a.75.75 0 0 0 0 1.5h1.317l-2.7 9H4.25a.75.75 0 1 0 0 1.5h4.5a.75.75 0 0 0 0-1.5H7.433l2.7-9h1.617a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/></svg>
|
|
34
|
+
`, $t = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.47 6.53a.75.75 0 0 1 1.06 1.061l-.727.727a2.743 2.743 0 0 0 3.879 3.879l.727-.727a.75.75 0 0 1 1.06 1.06l-.726.727a4.243 4.243 0 0 1-6-6zm8 1.879a.75.75 0 0 0 1.06 1.06l.727-.726a4.243 4.243 0 0 0-6-6l-.727.727a.75.75 0 0 0 1.061 1.06l.727-.727a2.743 2.743 0 0 1 3.879 3.879zm-.94-1.879a.75.75 0 1 0-1.06-1.06l-4 4a.75.75 0 1 0 1.06 1.06z" clip-rule="evenodd"/></svg>
|
|
35
|
+
`, Vt = `<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16" fill="none" stroke="currentColor" stroke-linecap="round" stroke-linejoin="round" stroke-width="1.5">
|
|
35
36
|
<rect x="1.5" y="1.5" width="4" height="3" rx=".75"/>
|
|
36
37
|
<rect x="10.5" y="1.5" width="4" height="3" rx=".75"/>
|
|
37
38
|
<rect x="6" y="11.5" width="4" height="3" rx=".75"/>
|
|
38
39
|
<path d="M3.5 4.5v2h4.5v5M12.5 4.5v2H8"/>
|
|
39
40
|
</svg>
|
|
40
|
-
`,
|
|
41
|
-
`,
|
|
42
|
-
`,
|
|
43
|
-
`,
|
|
44
|
-
`,
|
|
45
|
-
`,
|
|
41
|
+
`, St = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M3.21 2.5a.5.5 0 0 0-.796-.403l-.71.524a.5.5 0 0 0 .507.856V5a.5.5 0 0 0 1 0zm2.54.5a.75.75 0 1 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zm0 8.5a.75.75 0 0 0 0 1.5h8.5a.75.75 0 0 0 0-1.5zM5 8a.75.75 0 0 1 .75-.75h8.5a.75.75 0 0 1 0 1.5h-8.5A.75.75 0 0 1 5 8m-2.596-.67c-.07.051-.087.097-.09.116a.5.5 0 0 1-.988-.149c.051-.345.26-.61.495-.779.236-.169.531-.268.83-.268.345 0 .666.109.902.343s.337.543.337.85c0 .51-.321.855-.76 1.278l-.02.018-.013.011h.493a.5.5 0 0 1 0 1H1.75a.5.5 0 0 1-.326-.879l1.022-.88c.223-.216.338-.344.398-.434.046-.069.046-.092.046-.111v-.002c0-.09-.027-.127-.041-.141-.013-.013-.062-.053-.199-.053a.44.44 0 0 0-.246.08M1.9 10.5a.5.5 0 0 0 0 1h.38l-.15.18a.5.5 0 0 0 .383.82c.259 0 .365.077.407.122.051.054.08.133.08.218a.02.02 0 0 1-.004.014.2.2 0 0 1-.057.052.7.7 0 0 1-.371.094.55.55 0 0 1-.258-.057c-.059-.032-.075-.061-.076-.064a.5.5 0 0 0-.91.416c.213.464.728.705 1.244.705.319 0 .651-.082.92-.258.275-.181.512-.487.512-.902 0-.293-.096-.634-.355-.906a1.3 1.3 0 0 0-.252-.206l.34-.407a.5.5 0 0 0-.383-.821z" clip-rule="evenodd"/></svg>
|
|
42
|
+
`, At = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><g clip-path="url(#a)"><path fill="currentColor" fill-rule="evenodd" d="M12.411 6.33A2.75 2.75 0 0 1 14.5 9v.25A2.75 2.75 0 0 1 11.75 12h-.25a2.747 2.747 0 0 1-2.748-2.657V9.34H8.75V9q0-.197.027-.386.03-.392.09-.77a8 8 0 0 1 .559-1.918 7.2 7.2 0 0 1 2.162-2.801l.098-.076A.24.24 0 0 1 11.83 3c.186 0 .306.202.22.367a19 19 0 0 0-.22.433 18 18 0 0 0-.43.951 14 14 0 0 0-.557 1.578l.054-.013a2.8 2.8 0 0 1 .603-.066h.25q.343.001.661.08m.549-1.405A4.25 4.25 0 0 1 16 9v.25a4.25 4.25 0 0 1-4.25 4.25h-.25A4.25 4.25 0 0 1 8 11.662 4.25 4.25 0 0 1 4.5 13.5h-.25A4.25 4.25 0 0 1 0 9.336V9q0-.275.035-.543c.207-2.62 1.358-4.966 3.488-6.599A1.74 1.74 0 0 1 4.58 1.5c1.341 0 2.146 1.425 1.548 2.564-.111.211-.26.508-.418.86.788.234 1.481.69 2.005 1.297a8.76 8.76 0 0 1 3.058-4.363A1.74 1.74 0 0 1 11.83 1.5c1.341 0 2.146 1.425 1.548 2.564-.111.211-.26.508-.418.86M5.16 6.33a2.8 2.8 0 0 0-.661-.08h-.25a2.8 2.8 0 0 0-.657.079 14 14 0 0 1 .68-1.865A18 18 0 0 1 4.8 3.367.25.25 0 0 0 4.58 3a.24.24 0 0 0-.144.049 8 8 0 0 0-.93.844 7.2 7.2 0 0 0-1.39 2.172 8 8 0 0 0-.498 1.779q-.062.378-.091.77A3 3 0 0 0 1.5 9v.339h.001v.004A2.747 2.747 0 0 0 4.25 12h.251a2.75 2.75 0 0 0 2.75-2.75V9c0-1.29-.89-2.374-2.089-2.67" clip-rule="evenodd"/></g><defs><clipPath id="a"><path fill="currentColor" d="M0 0h16v16H0z"/></clipPath></defs></svg>
|
|
43
|
+
`, Pt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5.502 2.757C6.214 2.236 7.122 2 7.984 2c1.685 0 3.015.572 3.687 1.915a.75.75 0 1 1-1.342.67C10.001 3.93 9.331 3.5 7.984 3.5c-.611 0-1.19.17-1.597.468-.384.28-.627.678-.627 1.242 0 .403.165.758.463 1.04H4.447a2.9 2.9 0 0 1-.187-1.04c0-1.084.507-1.916 1.242-2.453m6.047 5.993h1.201a.75.75 0 0 0 0-1.5h-9.5a.75.75 0 0 0 0 1.5h5.475l.043.012h.002c1.196.323 1.98 1.005 1.98 1.988 0 .669-.289 1.063-.742 1.33-.5.296-1.222.437-2 .437-1.398 0-2.453-.472-2.796-1.504a.75.75 0 1 0-1.424.474c.657 1.969 2.602 2.53 4.22 2.53.915 0 1.94-.16 2.762-.644.869-.512 1.48-1.376 1.48-2.623 0-.822-.276-1.481-.7-2" clip-rule="evenodd"/></svg>
|
|
44
|
+
`, zt = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M9.25 3.5h-2.5v2h2.5zM4 3.5h1.25v2H2.5V5A1.5 1.5 0 0 1 4 3.5M2.5 7h2.75v2H2.5zm0 3.5v.5A1.5 1.5 0 0 0 4 12.5h1.25v-2zm4.25 0v2h2.5v-2zm4 0v2H12a1.5 1.5 0 0 0 1.5-1.5v-.5zM13.5 9h-2.75V7h2.75zM9.25 9h-2.5V7h2.5zm1.5-5.5v2h2.75V5A1.5 1.5 0 0 0 12 3.5zM4 2a3 3 0 0 0-3 3v6a3 3 0 0 0 3 3h8a3 3 0 0 0 3-3V5a3 3 0 0 0-3-3z" clip-rule="evenodd"/></svg>
|
|
45
|
+
`, Ft = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M5 2.75a.75.75 0 0 0-1.5 0V7a4.5 4.5 0 0 0 9 0V2.75a.75.75 0 0 0-1.5 0V7a3 3 0 0 1-6 0zm-.75 9.75a.75.75 0 0 0 0 1.5h7.5a.75.75 0 0 0 0-1.5z" clip-rule="evenodd"/></svg>
|
|
46
|
+
`, Nt = ["innerHTML"], Rt = /* @__PURE__ */ J({
|
|
46
47
|
__name: "MarkdownEditorToolbarIcon",
|
|
47
48
|
props: {
|
|
48
49
|
name: {}
|
|
49
50
|
},
|
|
50
51
|
setup(e) {
|
|
51
|
-
const
|
|
52
|
-
return (
|
|
52
|
+
const g = { arrowLeft: ht, arrowRight: yt, bold: Mt, bulletList: Ct, chevronDown: pt, code: xt, function: Lt, gear: Bt, horizontalRule: Tt, image: Et, italic: Ht, link: $t, mermaid: Vt, orderedList: St, quote: At, strike: Pt, table: zt, underline: Ft }, y = e;
|
|
53
|
+
return (u, b) => (r(), m("span", {
|
|
53
54
|
class: "markdown-editor__toolbar-icon",
|
|
54
55
|
"aria-hidden": "true",
|
|
55
|
-
innerHTML:
|
|
56
|
-
}, null, 8,
|
|
56
|
+
innerHTML: g[y.name]
|
|
57
|
+
}, null, 8, Nt));
|
|
57
58
|
}
|
|
58
|
-
}), p = /* @__PURE__ */
|
|
59
|
+
}), p = /* @__PURE__ */ _(Rt, [["__scopeId", "data-v-ec4329c1"]]), Dt = ["data-theme", "aria-label"], It = ["aria-checked"], qt = ["aria-checked"], Ot = ["data-theme", "aria-label"], jt = ["aria-checked", "onClick"], Ut = { class: "markdown-editor__floating-menu-icon" }, Wt = ["data-theme", "aria-label"], Qt = ["data-theme", "aria-label"], Gt = ["aria-checked"], Yt = ["aria-checked"], Zt = ["disabled"], Kt = ["disabled"], Xt = ["data-theme", "aria-label"], Jt = ["aria-checked", "onClick"], _t = /* @__PURE__ */ J({
|
|
59
60
|
__name: "MarkdownEditorFloatingMenus",
|
|
60
61
|
props: {
|
|
61
62
|
codeVisible: { type: Boolean },
|
|
@@ -70,173 +71,173 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
70
71
|
translate: { type: Function }
|
|
71
72
|
},
|
|
72
73
|
emits: ["code-block", "inline-code", "inline-formula", "math-block", "select-mode", "select-text-style", "bullet-list", "ordered-list", "indent-list", "outdent-list"],
|
|
73
|
-
setup(e, { expose:
|
|
74
|
-
const
|
|
75
|
-
return
|
|
74
|
+
setup(e, { expose: g, emit: y }) {
|
|
75
|
+
const u = y, b = h(), d = h(), s = h(), i = h(), a = h(), M = ["wysiwyg", "markup", "split"];
|
|
76
|
+
return g({
|
|
76
77
|
getElement(n) {
|
|
77
|
-
return { code:
|
|
78
|
+
return { code: b.value, formula: d.value, heading: s.value, list: i.value, mode: a.value }[n];
|
|
78
79
|
}
|
|
79
|
-
}), (n, l) => (
|
|
80
|
-
e.codeVisible ? (
|
|
80
|
+
}), (n, l) => (r(), m(F, null, [
|
|
81
|
+
e.codeVisible ? (r(), m("div", {
|
|
81
82
|
key: 0,
|
|
82
83
|
ref_key: "code",
|
|
83
|
-
ref:
|
|
84
|
+
ref: b,
|
|
84
85
|
class: "markdown-editor__floating-menu",
|
|
85
86
|
"data-theme": e.theme,
|
|
86
87
|
role: "menu",
|
|
87
88
|
"aria-label": e.translate("code")
|
|
88
89
|
}, [
|
|
89
|
-
|
|
90
|
+
f("button", {
|
|
90
91
|
"aria-checked": e.state.code,
|
|
91
92
|
role: "menuitemradio",
|
|
92
93
|
type: "button",
|
|
93
94
|
onMousedown: l[0] || (l[0] = w(() => {
|
|
94
95
|
}, ["prevent"])),
|
|
95
|
-
onClick: l[1] || (l[1] = (k) =>
|
|
96
|
+
onClick: l[1] || (l[1] = (k) => u("inline-code"))
|
|
96
97
|
}, [
|
|
97
98
|
C(p, { name: "code" }),
|
|
98
|
-
|
|
99
|
-
], 40,
|
|
100
|
-
|
|
99
|
+
f("span", null, H(e.translate("code")), 1)
|
|
100
|
+
], 40, It),
|
|
101
|
+
f("button", {
|
|
101
102
|
"aria-checked": e.state.codeBlock,
|
|
102
103
|
role: "menuitemradio",
|
|
103
104
|
type: "button",
|
|
104
105
|
onMousedown: l[2] || (l[2] = w(() => {
|
|
105
106
|
}, ["prevent"])),
|
|
106
|
-
onClick: l[3] || (l[3] = (k) =>
|
|
107
|
+
onClick: l[3] || (l[3] = (k) => u("code-block"))
|
|
107
108
|
}, [
|
|
108
|
-
l[16] || (l[16] =
|
|
109
|
-
|
|
110
|
-
], 40,
|
|
111
|
-
], 8,
|
|
112
|
-
e.headingVisible ? (
|
|
109
|
+
l[16] || (l[16] = f("span", { class: "markdown-editor__floating-menu-icon" }, "{ }", -1)),
|
|
110
|
+
f("span", null, H(e.translate("codeBlock")), 1)
|
|
111
|
+
], 40, qt)
|
|
112
|
+
], 8, Dt)) : E("", !0),
|
|
113
|
+
e.headingVisible ? (r(), m("div", {
|
|
113
114
|
key: 1,
|
|
114
115
|
ref_key: "heading",
|
|
115
|
-
ref:
|
|
116
|
+
ref: s,
|
|
116
117
|
class: "markdown-editor__floating-menu",
|
|
117
118
|
"data-theme": e.theme,
|
|
118
119
|
role: "menu",
|
|
119
120
|
"aria-label": e.translate("heading")
|
|
120
121
|
}, [
|
|
121
|
-
(
|
|
122
|
+
(r(), m(F, null, oe(["paragraph", "1", "2", "3", "4", "5", "6"], (k) => f("button", {
|
|
122
123
|
key: k,
|
|
123
124
|
"aria-checked": e.textStyle === k,
|
|
124
125
|
role: "menuitemradio",
|
|
125
126
|
type: "button",
|
|
126
|
-
onClick: (
|
|
127
|
+
onClick: (I) => u("select-text-style", k)
|
|
127
128
|
}, [
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
], 8,
|
|
131
|
-
], 8,
|
|
132
|
-
e.formulaVisible ? (
|
|
129
|
+
f("span", Ut, H(k === "paragraph" ? "T" : `H${k}`), 1),
|
|
130
|
+
f("span", null, H(k === "paragraph" ? e.translate("paragraph") : `${e.translate("heading")} ${k}`), 1)
|
|
131
|
+
], 8, jt)), 64))
|
|
132
|
+
], 8, Ot)) : E("", !0),
|
|
133
|
+
e.formulaVisible ? (r(), m("div", {
|
|
133
134
|
key: 2,
|
|
134
135
|
ref_key: "formula",
|
|
135
|
-
ref:
|
|
136
|
+
ref: d,
|
|
136
137
|
class: "markdown-editor__floating-menu",
|
|
137
138
|
"data-theme": e.theme,
|
|
138
139
|
role: "menu",
|
|
139
140
|
"aria-label": e.translate("formulaInsert")
|
|
140
141
|
}, [
|
|
141
|
-
|
|
142
|
+
f("button", {
|
|
142
143
|
role: "menuitem",
|
|
143
144
|
type: "button",
|
|
144
145
|
onMousedown: l[4] || (l[4] = w(() => {
|
|
145
146
|
}, ["prevent"])),
|
|
146
|
-
onClick: l[5] || (l[5] = (k) =>
|
|
147
|
+
onClick: l[5] || (l[5] = (k) => u("inline-formula"))
|
|
147
148
|
}, [
|
|
148
|
-
l[17] || (l[17] =
|
|
149
|
-
|
|
149
|
+
l[17] || (l[17] = f("span", { class: "markdown-editor__floating-menu-icon" }, "ƒ", -1)),
|
|
150
|
+
f("span", null, H(e.translate("formulaInline")), 1)
|
|
150
151
|
], 32),
|
|
151
|
-
|
|
152
|
+
f("button", {
|
|
152
153
|
role: "menuitem",
|
|
153
154
|
type: "button",
|
|
154
155
|
onMousedown: l[6] || (l[6] = w(() => {
|
|
155
156
|
}, ["prevent"])),
|
|
156
|
-
onClick: l[7] || (l[7] = (k) =>
|
|
157
|
+
onClick: l[7] || (l[7] = (k) => u("math-block"))
|
|
157
158
|
}, [
|
|
158
|
-
l[18] || (l[18] =
|
|
159
|
-
|
|
159
|
+
l[18] || (l[18] = f("span", { class: "markdown-editor__floating-menu-icon" }, "∑", -1)),
|
|
160
|
+
f("span", null, H(e.translate("formulaBlock")), 1)
|
|
160
161
|
], 32)
|
|
161
|
-
], 8,
|
|
162
|
-
e.listVisible ? (
|
|
162
|
+
], 8, Wt)) : E("", !0),
|
|
163
|
+
e.listVisible ? (r(), m("div", {
|
|
163
164
|
key: 3,
|
|
164
165
|
ref_key: "list",
|
|
165
|
-
ref:
|
|
166
|
+
ref: i,
|
|
166
167
|
class: "markdown-editor__floating-menu markdown-editor__floating-menu--list",
|
|
167
168
|
"data-theme": e.theme,
|
|
168
169
|
role: "menu",
|
|
169
170
|
"aria-label": e.translate("bulletList")
|
|
170
171
|
}, [
|
|
171
|
-
|
|
172
|
+
f("button", {
|
|
172
173
|
"aria-checked": e.state.bulletList,
|
|
173
174
|
role: "menuitemradio",
|
|
174
175
|
type: "button",
|
|
175
176
|
onMousedown: l[8] || (l[8] = w(() => {
|
|
176
177
|
}, ["prevent"])),
|
|
177
|
-
onClick: l[9] || (l[9] = (k) =>
|
|
178
|
+
onClick: l[9] || (l[9] = (k) => u("bullet-list"))
|
|
178
179
|
}, [
|
|
179
180
|
C(p, { name: "bulletList" }),
|
|
180
|
-
|
|
181
|
-
], 40,
|
|
182
|
-
|
|
181
|
+
f("span", null, H(e.translate("bulletList")), 1)
|
|
182
|
+
], 40, Gt),
|
|
183
|
+
f("button", {
|
|
183
184
|
"aria-checked": e.state.orderedList,
|
|
184
185
|
role: "menuitemradio",
|
|
185
186
|
type: "button",
|
|
186
187
|
onMousedown: l[10] || (l[10] = w(() => {
|
|
187
188
|
}, ["prevent"])),
|
|
188
|
-
onClick: l[11] || (l[11] = (k) =>
|
|
189
|
+
onClick: l[11] || (l[11] = (k) => u("ordered-list"))
|
|
189
190
|
}, [
|
|
190
191
|
C(p, { name: "orderedList" }),
|
|
191
|
-
|
|
192
|
-
], 40,
|
|
193
|
-
|
|
192
|
+
f("span", null, H(e.translate("orderedList")), 1)
|
|
193
|
+
], 40, Yt),
|
|
194
|
+
f("button", {
|
|
194
195
|
disabled: !e.state.listIndentEnabled,
|
|
195
196
|
role: "menuitem",
|
|
196
197
|
type: "button",
|
|
197
198
|
onMousedown: l[12] || (l[12] = w(() => {
|
|
198
199
|
}, ["prevent"])),
|
|
199
|
-
onClick: l[13] || (l[13] = (k) =>
|
|
200
|
+
onClick: l[13] || (l[13] = (k) => u("indent-list"))
|
|
200
201
|
}, [
|
|
201
|
-
l[19] || (l[19] =
|
|
202
|
-
|
|
203
|
-
l[20] || (l[20] =
|
|
204
|
-
], 40,
|
|
205
|
-
|
|
202
|
+
l[19] || (l[19] = f("span", { class: "markdown-editor__floating-menu-icon" }, "→", -1)),
|
|
203
|
+
f("span", null, H(e.translate("listIndent")), 1),
|
|
204
|
+
l[20] || (l[20] = f("kbd", null, "Tab", -1))
|
|
205
|
+
], 40, Zt),
|
|
206
|
+
f("button", {
|
|
206
207
|
disabled: !e.state.listOutdentEnabled,
|
|
207
208
|
role: "menuitem",
|
|
208
209
|
type: "button",
|
|
209
210
|
onMousedown: l[14] || (l[14] = w(() => {
|
|
210
211
|
}, ["prevent"])),
|
|
211
|
-
onClick: l[15] || (l[15] = (k) =>
|
|
212
|
+
onClick: l[15] || (l[15] = (k) => u("outdent-list"))
|
|
212
213
|
}, [
|
|
213
|
-
l[21] || (l[21] =
|
|
214
|
-
|
|
215
|
-
l[22] || (l[22] =
|
|
216
|
-
], 40,
|
|
217
|
-
], 8,
|
|
218
|
-
e.modeVisible ? (
|
|
214
|
+
l[21] || (l[21] = f("span", { class: "markdown-editor__floating-menu-icon" }, "←", -1)),
|
|
215
|
+
f("span", null, H(e.translate("listOutdent")), 1),
|
|
216
|
+
l[22] || (l[22] = f("kbd", null, "⇧ Tab", -1))
|
|
217
|
+
], 40, Kt)
|
|
218
|
+
], 8, Qt)) : E("", !0),
|
|
219
|
+
e.modeVisible ? (r(), m("div", {
|
|
219
220
|
key: 4,
|
|
220
221
|
ref_key: "modeMenu",
|
|
221
|
-
ref:
|
|
222
|
+
ref: a,
|
|
222
223
|
class: "markdown-editor__floating-menu",
|
|
223
224
|
"data-theme": e.theme,
|
|
224
225
|
role: "menu",
|
|
225
226
|
"aria-label": e.translate("mode")
|
|
226
227
|
}, [
|
|
227
|
-
(
|
|
228
|
+
(r(), m(F, null, oe(M, (k) => f("button", {
|
|
228
229
|
key: k,
|
|
229
230
|
"aria-checked": e.mode === k,
|
|
230
231
|
role: "menuitemradio",
|
|
231
232
|
type: "button",
|
|
232
|
-
onClick: (
|
|
233
|
+
onClick: (I) => u("select-mode", k)
|
|
233
234
|
}, [
|
|
234
|
-
|
|
235
|
-
], 8,
|
|
236
|
-
], 8,
|
|
235
|
+
f("span", null, H(e.translate(k === "wysiwyg" ? "visual" : k)), 1)
|
|
236
|
+
], 8, Jt)), 64))
|
|
237
|
+
], 8, Xt)) : E("", !0)
|
|
237
238
|
], 64));
|
|
238
239
|
}
|
|
239
|
-
}),
|
|
240
|
+
}), ea = /* @__PURE__ */ _(_t, [["__scopeId", "data-v-864eac67"]]), ta = ["data-theme", "aria-label"], aa = ["aria-label", "title"], la = ["value", "aria-label"], na = /* @__PURE__ */ J({
|
|
240
241
|
__name: "MarkdownEditorImageActions",
|
|
241
242
|
props: {
|
|
242
243
|
objectFit: {},
|
|
@@ -244,34 +245,34 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
244
245
|
translate: { type: Function }
|
|
245
246
|
},
|
|
246
247
|
emits: ["full-width", "object-fit"],
|
|
247
|
-
setup(e, { expose:
|
|
248
|
-
const
|
|
249
|
-
return
|
|
248
|
+
setup(e, { expose: g, emit: y }) {
|
|
249
|
+
const u = y, b = h();
|
|
250
|
+
return g({ element: b }), (d, s) => (r(), m("div", {
|
|
250
251
|
ref_key: "element",
|
|
251
|
-
ref:
|
|
252
|
+
ref: b,
|
|
252
253
|
class: "markdown-editor__image-actions",
|
|
253
254
|
"data-theme": e.theme,
|
|
254
255
|
role: "toolbar",
|
|
255
256
|
"aria-label": e.translate("image")
|
|
256
257
|
}, [
|
|
257
|
-
|
|
258
|
+
f("button", {
|
|
258
259
|
type: "button",
|
|
259
260
|
"aria-label": e.translate("imageWidthFull"),
|
|
260
261
|
title: e.translate("imageWidthFull"),
|
|
261
|
-
onMousedown:
|
|
262
|
+
onMousedown: s[0] || (s[0] = w(() => {
|
|
262
263
|
}, ["prevent"])),
|
|
263
|
-
onClick:
|
|
264
|
-
}, "↔", 40,
|
|
265
|
-
|
|
264
|
+
onClick: s[1] || (s[1] = (i) => u("full-width"))
|
|
265
|
+
}, "↔", 40, aa),
|
|
266
|
+
f("select", {
|
|
266
267
|
value: e.objectFit ?? "contain",
|
|
267
268
|
"aria-label": e.translate("imageFit"),
|
|
268
|
-
onChange:
|
|
269
|
-
}, [...
|
|
270
|
-
|
|
271
|
-
])], 40,
|
|
272
|
-
], 8,
|
|
269
|
+
onChange: s[2] || (s[2] = (i) => u("object-fit", i.target.value))
|
|
270
|
+
}, [...s[3] || (s[3] = [
|
|
271
|
+
st('<option value="contain" data-v-0158c930>Contain</option><option value="cover" data-v-0158c930>Cover</option><option value="fill" data-v-0158c930>Fill</option><option value="none" data-v-0158c930>None</option><option value="scale-down" data-v-0158c930>Scale down</option>', 5)
|
|
272
|
+
])], 40, la)
|
|
273
|
+
], 8, ta));
|
|
273
274
|
}
|
|
274
|
-
}),
|
|
275
|
+
}), oa = /* @__PURE__ */ _(na, [["__scopeId", "data-v-0158c930"]]), ia = ["aria-label"], sa = ["data-toolbar-group"], ra = ["disabled", "aria-label", "title", "onClick"], da = ["disabled", "aria-label", "title", "onClick"], ua = ["aria-expanded", "aria-label", "aria-pressed", "title"], ma = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ca = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], va = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ga = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], fa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ba = ["aria-expanded", "aria-label", "aria-pressed", "title"], ka = ["aria-expanded", "aria-label", "aria-pressed", "title"], wa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], ha = ["aria-label", "aria-pressed", "title"], ya = ["aria-expanded", "aria-pressed", "aria-label", "title"], Ma = ["title"], Ca = ["aria-label"], pa = ["aria-expanded", "aria-label", "title"], xa = ["aria-expanded", "aria-label", "aria-pressed", "title"], La = ["aria-label", "aria-pressed", "title", "onClick"], Ba = ["aria-label", "title"], Ta = ["aria-label", "title"], Ea = ["aria-label", "title"], Ha = ["aria-expanded", "aria-label", "title"], $a = /* @__PURE__ */ J({
|
|
275
276
|
__name: "MarkdownEditorToolbar",
|
|
276
277
|
props: {
|
|
277
278
|
commands: {},
|
|
@@ -290,58 +291,62 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
290
291
|
translate: { type: Function }
|
|
291
292
|
},
|
|
292
293
|
emits: ["execute", "insert-html", "toggle-formula-menu", "toggle-code-menu", "toggle-heading-menu", "toggle-image-editor", "toggle-link-editor", "toggle-list-menu", "toggle-mode-menu"],
|
|
293
|
-
setup(e, { emit:
|
|
294
|
-
const
|
|
295
|
-
function
|
|
296
|
-
return
|
|
294
|
+
setup(e, { emit: g }) {
|
|
295
|
+
const y = e;
|
|
296
|
+
function u(i) {
|
|
297
|
+
return i.map(ft).filter((a) => bt(a, y.state));
|
|
297
298
|
}
|
|
298
|
-
function
|
|
299
|
-
|
|
299
|
+
function b(i, a) {
|
|
300
|
+
S(i, y.state) && (i.action ? i.action.run({
|
|
301
|
+
commands: y.commands,
|
|
302
|
+
execute: (M) => d("execute", i.id, M),
|
|
303
|
+
state: y.state
|
|
304
|
+
}) : d("execute", i.id, a));
|
|
300
305
|
}
|
|
301
|
-
const
|
|
302
|
-
function
|
|
303
|
-
return
|
|
306
|
+
const d = g;
|
|
307
|
+
function s(i) {
|
|
308
|
+
return i.currentTarget;
|
|
304
309
|
}
|
|
305
|
-
return (
|
|
310
|
+
return (i, a) => (r(), m("div", {
|
|
306
311
|
class: "markdown-editor__toolbar",
|
|
307
312
|
"data-markdown-editor-toolbar": "",
|
|
308
313
|
role: "toolbar",
|
|
309
314
|
"aria-label": e.translate("toolbar")
|
|
310
315
|
}, [
|
|
311
|
-
(
|
|
312
|
-
key:
|
|
316
|
+
(r(!0), m(F, null, oe((e.toolbarConfig ?? c(gt)(e.toolbarPreset)).groups, (M) => (r(), m("div", {
|
|
317
|
+
key: M.id,
|
|
313
318
|
class: "markdown-editor__toolbar-group",
|
|
314
319
|
role: "group",
|
|
315
|
-
"data-toolbar-group":
|
|
320
|
+
"data-toolbar-group": M.id
|
|
316
321
|
}, [
|
|
317
|
-
(
|
|
322
|
+
(r(!0), m(F, null, oe(u(M.items), (n) => (r(), m(F, {
|
|
318
323
|
key: n.id
|
|
319
324
|
}, [
|
|
320
|
-
n.id === "undo" ? (
|
|
325
|
+
n.id === "undo" ? (r(), m("button", {
|
|
321
326
|
key: 0,
|
|
322
327
|
"data-toolbar-item": "undo",
|
|
323
328
|
type: "button",
|
|
324
|
-
disabled: !
|
|
329
|
+
disabled: !c(S)(n, e.state),
|
|
325
330
|
"aria-label": e.translate("undo"),
|
|
326
331
|
title: e.translate("undo"),
|
|
327
|
-
onMousedown:
|
|
332
|
+
onMousedown: a[0] || (a[0] = w(() => {
|
|
328
333
|
}, ["prevent"])),
|
|
329
|
-
onClick: (l) =>
|
|
334
|
+
onClick: (l) => b(n, e.commands.undo)
|
|
330
335
|
}, [
|
|
331
336
|
C(p, { name: "arrowLeft" })
|
|
332
|
-
], 40,
|
|
337
|
+
], 40, ra)) : n.id === "redo" ? (r(), m("button", {
|
|
333
338
|
key: 1,
|
|
334
339
|
"data-toolbar-item": "redo",
|
|
335
340
|
type: "button",
|
|
336
|
-
disabled: !
|
|
341
|
+
disabled: !c(S)(n, e.state),
|
|
337
342
|
"aria-label": e.translate("redo"),
|
|
338
343
|
title: e.translate("redo"),
|
|
339
|
-
onMousedown:
|
|
344
|
+
onMousedown: a[1] || (a[1] = w(() => {
|
|
340
345
|
}, ["prevent"])),
|
|
341
|
-
onClick: (l) =>
|
|
346
|
+
onClick: (l) => b(n, e.commands.redo)
|
|
342
347
|
}, [
|
|
343
348
|
C(p, { name: "arrowRight" })
|
|
344
|
-
], 40,
|
|
349
|
+
], 40, da)) : n.id === "heading" ? (r(), m("button", {
|
|
345
350
|
key: 2,
|
|
346
351
|
class: "markdown-editor__toolbar-heading",
|
|
347
352
|
"data-toolbar-item": "heading",
|
|
@@ -350,76 +355,76 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
350
355
|
"aria-pressed": e.state.headingLevel !== void 0,
|
|
351
356
|
title: e.translate("heading"),
|
|
352
357
|
type: "button",
|
|
353
|
-
onMousedown:
|
|
358
|
+
onMousedown: a[2] || (a[2] = w(() => {
|
|
354
359
|
}, ["prevent"])),
|
|
355
|
-
onClick:
|
|
360
|
+
onClick: a[3] || (a[3] = (l) => d("toggle-heading-menu", s(l)))
|
|
356
361
|
}, [
|
|
357
|
-
|
|
362
|
+
f("span", null, H(e.textStyleLabel), 1),
|
|
358
363
|
C(p, { name: "chevronDown" })
|
|
359
|
-
], 40,
|
|
364
|
+
], 40, ua)) : n.id === "bold" ? (r(), m("button", {
|
|
360
365
|
key: 3,
|
|
361
366
|
"data-toolbar-item": "bold",
|
|
362
|
-
disabled: !
|
|
367
|
+
disabled: !c(S)(n, e.state),
|
|
363
368
|
"aria-label": e.translate("bold"),
|
|
364
|
-
"aria-pressed":
|
|
369
|
+
"aria-pressed": c(G)(n, e.state, e.state.bold),
|
|
365
370
|
type: "button",
|
|
366
371
|
title: e.translate("bold"),
|
|
367
|
-
onMousedown:
|
|
372
|
+
onMousedown: a[4] || (a[4] = w(() => {
|
|
368
373
|
}, ["prevent"])),
|
|
369
|
-
onClick: (l) =>
|
|
374
|
+
onClick: (l) => b(n, e.commands.bold)
|
|
370
375
|
}, [
|
|
371
376
|
C(p, { name: "bold" })
|
|
372
|
-
], 40,
|
|
377
|
+
], 40, ma)) : n.id === "italic" ? (r(), m("button", {
|
|
373
378
|
key: 4,
|
|
374
379
|
"data-toolbar-item": "italic",
|
|
375
|
-
disabled: !
|
|
380
|
+
disabled: !c(S)(n, e.state),
|
|
376
381
|
"aria-label": e.translate("italic"),
|
|
377
|
-
"aria-pressed":
|
|
382
|
+
"aria-pressed": c(G)(n, e.state, e.state.italic),
|
|
378
383
|
type: "button",
|
|
379
384
|
title: e.translate("italic"),
|
|
380
|
-
onMousedown:
|
|
385
|
+
onMousedown: a[5] || (a[5] = w(() => {
|
|
381
386
|
}, ["prevent"])),
|
|
382
|
-
onClick: (l) =>
|
|
387
|
+
onClick: (l) => b(n, e.commands.italic)
|
|
383
388
|
}, [
|
|
384
389
|
C(p, { name: "italic" })
|
|
385
|
-
], 40,
|
|
390
|
+
], 40, ca)) : n.id === "underline" ? (r(), m("button", {
|
|
386
391
|
key: 5,
|
|
387
392
|
"data-toolbar-item": "underline",
|
|
388
|
-
disabled: !
|
|
393
|
+
disabled: !c(S)(n, e.state),
|
|
389
394
|
"aria-label": e.translate("underline"),
|
|
390
|
-
"aria-pressed":
|
|
395
|
+
"aria-pressed": c(G)(n, e.state, e.state.underline),
|
|
391
396
|
type: "button",
|
|
392
397
|
title: e.translate("underline"),
|
|
393
|
-
onMousedown:
|
|
398
|
+
onMousedown: a[6] || (a[6] = w(() => {
|
|
394
399
|
}, ["prevent"])),
|
|
395
|
-
onClick: (l) =>
|
|
400
|
+
onClick: (l) => b(n, e.commands.underline)
|
|
396
401
|
}, [
|
|
397
402
|
C(p, { name: "underline" })
|
|
398
|
-
], 40,
|
|
403
|
+
], 40, va)) : n.id === "strike" ? (r(), m("button", {
|
|
399
404
|
key: 6,
|
|
400
405
|
"data-toolbar-item": "strike",
|
|
401
|
-
disabled: !
|
|
406
|
+
disabled: !c(S)(n, e.state),
|
|
402
407
|
"aria-label": e.translate("strike"),
|
|
403
|
-
"aria-pressed":
|
|
408
|
+
"aria-pressed": c(G)(n, e.state, e.state.strikethrough),
|
|
404
409
|
type: "button",
|
|
405
410
|
title: e.translate("strike"),
|
|
406
|
-
onMousedown:
|
|
411
|
+
onMousedown: a[7] || (a[7] = w(() => {
|
|
407
412
|
}, ["prevent"])),
|
|
408
|
-
onClick: (l) =>
|
|
413
|
+
onClick: (l) => b(n, e.commands.strikethrough)
|
|
409
414
|
}, [
|
|
410
415
|
C(p, { name: "strike" })
|
|
411
|
-
], 40,
|
|
416
|
+
], 40, ga)) : n.id === "mark" ? (r(), m("button", {
|
|
412
417
|
key: 7,
|
|
413
418
|
"data-toolbar-item": "mark",
|
|
414
|
-
disabled: !
|
|
419
|
+
disabled: !c(S)(n, e.state),
|
|
415
420
|
"aria-label": e.translate("mark"),
|
|
416
|
-
"aria-pressed":
|
|
421
|
+
"aria-pressed": c(G)(n, e.state, e.state.mark),
|
|
417
422
|
type: "button",
|
|
418
423
|
title: e.translate("mark"),
|
|
419
|
-
onMousedown:
|
|
424
|
+
onMousedown: a[8] || (a[8] = w(() => {
|
|
420
425
|
}, ["prevent"])),
|
|
421
|
-
onClick: (l) =>
|
|
422
|
-
}, "M", 40,
|
|
426
|
+
onClick: (l) => b(n, e.commands.mark)
|
|
427
|
+
}, " M ", 40, fa)) : n.id === "code" ? (r(), m("button", {
|
|
423
428
|
key: 8,
|
|
424
429
|
class: "markdown-editor__toolbar-code",
|
|
425
430
|
"data-toolbar-item": "code",
|
|
@@ -428,13 +433,13 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
428
433
|
"aria-pressed": e.state.code || e.state.codeBlock,
|
|
429
434
|
title: e.translate(e.state.codeBlock ? "codeBlock" : "code"),
|
|
430
435
|
type: "button",
|
|
431
|
-
onMousedown:
|
|
436
|
+
onMousedown: a[9] || (a[9] = w(() => {
|
|
432
437
|
}, ["prevent"])),
|
|
433
|
-
onClick:
|
|
438
|
+
onClick: a[10] || (a[10] = (l) => d("toggle-code-menu", s(l)))
|
|
434
439
|
}, [
|
|
435
440
|
C(p, { name: "code" }),
|
|
436
441
|
C(p, { name: "chevronDown" })
|
|
437
|
-
], 40,
|
|
442
|
+
], 40, ba)) : n.id === "bullet-list" ? (r(), m("button", {
|
|
438
443
|
key: 9,
|
|
439
444
|
class: "markdown-editor__toolbar-list",
|
|
440
445
|
"data-toolbar-item": "list",
|
|
@@ -443,38 +448,38 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
443
448
|
"aria-pressed": e.state.bulletList || e.state.orderedList,
|
|
444
449
|
title: e.translate(e.state.orderedList ? "orderedList" : "bulletList"),
|
|
445
450
|
type: "button",
|
|
446
|
-
onMousedown:
|
|
451
|
+
onMousedown: a[11] || (a[11] = w(() => {
|
|
447
452
|
}, ["prevent"])),
|
|
448
|
-
onClick:
|
|
453
|
+
onClick: a[12] || (a[12] = (l) => d("toggle-list-menu", s(l)))
|
|
449
454
|
}, [
|
|
450
455
|
C(p, {
|
|
451
456
|
name: e.state.orderedList ? "orderedList" : "bulletList"
|
|
452
457
|
}, null, 8, ["name"]),
|
|
453
458
|
C(p, { name: "chevronDown" })
|
|
454
|
-
], 40,
|
|
459
|
+
], 40, ka)) : n.id === "ordered-list" ? (r(), m(F, { key: 10 }, [], 64)) : n.id === "quote" ? (r(), m("button", {
|
|
455
460
|
key: 11,
|
|
456
461
|
"data-toolbar-item": "quote",
|
|
457
|
-
disabled: !
|
|
462
|
+
disabled: !c(S)(n, e.state),
|
|
458
463
|
"aria-label": e.translate("quote"),
|
|
459
|
-
"aria-pressed":
|
|
464
|
+
"aria-pressed": c(G)(n, e.state, e.state.quote),
|
|
460
465
|
type: "button",
|
|
461
466
|
title: e.translate("quote"),
|
|
462
|
-
onMousedown:
|
|
467
|
+
onMousedown: a[13] || (a[13] = w(() => {
|
|
463
468
|
}, ["prevent"])),
|
|
464
|
-
onClick: (l) =>
|
|
469
|
+
onClick: (l) => b(n, e.commands.quote)
|
|
465
470
|
}, [
|
|
466
471
|
C(p, { name: "quote" })
|
|
467
|
-
], 40,
|
|
472
|
+
], 40, wa)) : n.id === "fold-heading" ? (r(), m("button", {
|
|
468
473
|
key: 12,
|
|
469
474
|
"data-toolbar-item": "fold-heading",
|
|
470
475
|
"aria-label": e.translate("foldHeading"),
|
|
471
476
|
"aria-pressed": e.state.headingFolded,
|
|
472
477
|
type: "button",
|
|
473
478
|
title: e.translate("foldHeading"),
|
|
474
|
-
onMousedown:
|
|
479
|
+
onMousedown: a[14] || (a[14] = w(() => {
|
|
475
480
|
}, ["prevent"])),
|
|
476
|
-
onClick:
|
|
477
|
-
}, "▸", 40,
|
|
481
|
+
onClick: a[15] || (a[15] = (l) => d("execute", "fold-heading", e.commands.toggleHeadingFolding))
|
|
482
|
+
}, " ▸ ", 40, ha)) : n.id === "code-block" ? (r(), m(F, { key: 13 }, [], 64)) : n.id === "link" ? (r(), m("button", {
|
|
478
483
|
key: 14,
|
|
479
484
|
"data-toolbar-item": "link",
|
|
480
485
|
"aria-expanded": e.linkEditorVisible,
|
|
@@ -482,36 +487,36 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
482
487
|
type: "button",
|
|
483
488
|
"aria-label": e.translate("link"),
|
|
484
489
|
title: e.translate("link"),
|
|
485
|
-
onMousedown:
|
|
490
|
+
onMousedown: a[16] || (a[16] = w(() => {
|
|
486
491
|
}, ["prevent"])),
|
|
487
|
-
onClick:
|
|
492
|
+
onClick: a[17] || (a[17] = (l) => d("toggle-link-editor", s(l)))
|
|
488
493
|
}, [
|
|
489
494
|
C(p, { name: "link" })
|
|
490
|
-
], 40,
|
|
495
|
+
], 40, ya)) : n.id === "color" ? (r(), m("label", {
|
|
491
496
|
key: 15,
|
|
492
497
|
"data-toolbar-item": "color",
|
|
493
498
|
class: "markdown-editor__color",
|
|
494
499
|
title: e.translate("color")
|
|
495
500
|
}, [
|
|
496
|
-
|
|
501
|
+
f("input", {
|
|
497
502
|
"aria-label": e.translate("color"),
|
|
498
503
|
type: "color",
|
|
499
504
|
value: "#202125",
|
|
500
|
-
onInput:
|
|
501
|
-
}, null, 40,
|
|
502
|
-
], 8,
|
|
505
|
+
onInput: a[18] || (a[18] = (l) => d("execute", "color", e.commands.setColor(l.target.value)))
|
|
506
|
+
}, null, 40, Ca)
|
|
507
|
+
], 8, Ma)) : n.id === "image" ? (r(), m("button", {
|
|
503
508
|
key: 16,
|
|
504
509
|
"data-toolbar-item": "image",
|
|
505
510
|
"aria-expanded": e.imageEditorVisible,
|
|
506
511
|
"aria-label": e.translate("image"),
|
|
507
512
|
type: "button",
|
|
508
513
|
title: e.translate("image"),
|
|
509
|
-
onMousedown:
|
|
514
|
+
onMousedown: a[19] || (a[19] = w(() => {
|
|
510
515
|
}, ["prevent"])),
|
|
511
|
-
onClick:
|
|
516
|
+
onClick: a[20] || (a[20] = (l) => d("toggle-image-editor", s(l)))
|
|
512
517
|
}, [
|
|
513
518
|
C(p, { name: "image" })
|
|
514
|
-
], 40,
|
|
519
|
+
], 40, pa)) : n.id === "formula" ? (r(), m("button", {
|
|
515
520
|
key: 17,
|
|
516
521
|
"data-toolbar-item": "formula",
|
|
517
522
|
"aria-expanded": e.formulaMenuVisible,
|
|
@@ -519,146 +524,146 @@ import './index.css';const ft = `<svg xmlns="http://www.w3.org/2000/svg" width="
|
|
|
519
524
|
"aria-pressed": e.state.formula,
|
|
520
525
|
title: e.translate("formula"),
|
|
521
526
|
type: "button",
|
|
522
|
-
onMousedown:
|
|
527
|
+
onMousedown: a[21] || (a[21] = w(() => {
|
|
523
528
|
}, ["prevent"])),
|
|
524
|
-
onClick:
|
|
529
|
+
onClick: a[22] || (a[22] = (l) => d("toggle-formula-menu", s(l)))
|
|
525
530
|
}, [
|
|
526
531
|
C(p, { name: "function" })
|
|
527
|
-
], 40,
|
|
532
|
+
], 40, xa)) : n.id === "mermaid" ? (r(), m("button", {
|
|
528
533
|
key: 18,
|
|
529
534
|
"data-toolbar-item": "mermaid",
|
|
530
535
|
type: "button",
|
|
531
536
|
"aria-label": e.translate("mermaid"),
|
|
532
537
|
"aria-pressed": e.state.mermaid,
|
|
533
538
|
title: e.translate("mermaid"),
|
|
534
|
-
onMousedown:
|
|
539
|
+
onMousedown: a[23] || (a[23] = w(() => {
|
|
535
540
|
}, ["prevent"])),
|
|
536
|
-
onClick: (l) =>
|
|
541
|
+
onClick: (l) => b(n, e.commands.insertMermaid)
|
|
537
542
|
}, [
|
|
538
543
|
C(p, { name: "mermaid" })
|
|
539
|
-
], 40,
|
|
544
|
+
], 40, La)) : n.id === "html" ? (r(), m("button", {
|
|
540
545
|
key: 19,
|
|
541
546
|
"data-toolbar-item": "html",
|
|
542
547
|
type: "button",
|
|
543
548
|
"aria-label": e.translate("html"),
|
|
544
549
|
title: e.translate("html"),
|
|
545
|
-
onMousedown:
|
|
550
|
+
onMousedown: a[24] || (a[24] = w(() => {
|
|
546
551
|
}, ["prevent"])),
|
|
547
|
-
onClick:
|
|
548
|
-
}, "</>", 40,
|
|
552
|
+
onClick: a[25] || (a[25] = (l) => d("insert-html"))
|
|
553
|
+
}, " </> ", 40, Ba)) : n.id === "horizontal-rule" ? (r(), m("button", {
|
|
549
554
|
key: 20,
|
|
550
555
|
"data-toolbar-item": "horizontal-rule",
|
|
551
556
|
"aria-label": e.translate("horizontalRule"),
|
|
552
557
|
type: "button",
|
|
553
558
|
title: e.translate("horizontalRule"),
|
|
554
|
-
onMousedown:
|
|
559
|
+
onMousedown: a[26] || (a[26] = w(() => {
|
|
555
560
|
}, ["prevent"])),
|
|
556
|
-
onClick:
|
|
561
|
+
onClick: a[27] || (a[27] = (l) => d("execute", "horizontal-rule", e.commands.horizontalRule))
|
|
557
562
|
}, [
|
|
558
563
|
C(p, { name: "horizontalRule" })
|
|
559
|
-
], 40,
|
|
564
|
+
], 40, Ta)) : n.id === "table" ? (r(), m("button", {
|
|
560
565
|
key: 21,
|
|
561
566
|
"data-toolbar-item": "table",
|
|
562
567
|
"aria-label": e.translate("table"),
|
|
563
568
|
type: "button",
|
|
564
569
|
title: e.translate("table"),
|
|
565
|
-
onMousedown:
|
|
570
|
+
onMousedown: a[28] || (a[28] = w(() => {
|
|
566
571
|
}, ["prevent"])),
|
|
567
|
-
onClick:
|
|
572
|
+
onClick: a[29] || (a[29] = (l) => d("execute", "table", e.commands.insertTable()))
|
|
568
573
|
}, [
|
|
569
574
|
C(p, { name: "table" })
|
|
570
|
-
], 40,
|
|
575
|
+
], 40, Ea)) : E("", !0)
|
|
571
576
|
], 64))), 128))
|
|
572
|
-
], 8,
|
|
573
|
-
|
|
577
|
+
], 8, sa))), 128)),
|
|
578
|
+
f("button", {
|
|
574
579
|
class: "markdown-editor__toolbar-mode",
|
|
575
580
|
"data-toolbar-item": "mode",
|
|
576
581
|
type: "button",
|
|
577
582
|
"aria-expanded": e.modeMenuVisible,
|
|
578
583
|
"aria-label": e.translate("mode"),
|
|
579
584
|
title: e.translate("mode"),
|
|
580
|
-
onMousedown:
|
|
585
|
+
onMousedown: a[30] || (a[30] = w(() => {
|
|
581
586
|
}, ["prevent"])),
|
|
582
|
-
onClick:
|
|
587
|
+
onClick: a[31] || (a[31] = (M) => d("toggle-mode-menu", s(M)))
|
|
583
588
|
}, [
|
|
584
589
|
C(p, { name: "gear" }),
|
|
585
590
|
C(p, { name: "chevronDown" })
|
|
586
|
-
], 40,
|
|
587
|
-
|
|
591
|
+
], 40, Ha),
|
|
592
|
+
fe(i.$slots, "default", {
|
|
588
593
|
commands: e.commands,
|
|
589
|
-
execute: (
|
|
594
|
+
execute: (M) => d("execute", void 0, M)
|
|
590
595
|
}, void 0, !0)
|
|
591
|
-
], 8,
|
|
596
|
+
], 8, ia));
|
|
592
597
|
}
|
|
593
|
-
}),
|
|
598
|
+
}), Va = /* @__PURE__ */ _($a, [["__scopeId", "data-v-322b6a9c"]]), Sa = [
|
|
594
599
|
"--markdown-background",
|
|
595
600
|
"--markdown-border",
|
|
596
601
|
"--markdown-focus-background",
|
|
597
602
|
"--markdown-focus-text",
|
|
598
603
|
"--markdown-text"
|
|
599
604
|
];
|
|
600
|
-
function
|
|
601
|
-
const
|
|
602
|
-
let
|
|
603
|
-
function
|
|
604
|
-
|
|
605
|
+
function z(e, g = {}) {
|
|
606
|
+
const y = h(!1);
|
|
607
|
+
let u;
|
|
608
|
+
function b() {
|
|
609
|
+
y.value = !1, u?.(), u = void 0;
|
|
605
610
|
}
|
|
606
|
-
async function
|
|
607
|
-
|
|
608
|
-
const
|
|
609
|
-
if (
|
|
610
|
-
const
|
|
611
|
-
if (
|
|
612
|
-
const l = getComputedStyle(
|
|
613
|
-
for (const k of
|
|
614
|
-
|
|
611
|
+
async function d(i) {
|
|
612
|
+
b(), y.value = !0, await ne();
|
|
613
|
+
const a = e();
|
|
614
|
+
if (a === void 0) return;
|
|
615
|
+
const M = i.closest(".markdown-editor");
|
|
616
|
+
if (M !== null) {
|
|
617
|
+
const l = getComputedStyle(M);
|
|
618
|
+
for (const k of Sa)
|
|
619
|
+
a.style.setProperty(k, l.getPropertyValue(k));
|
|
615
620
|
}
|
|
616
|
-
|
|
617
|
-
const { x: l, y: k } = await
|
|
618
|
-
middleware: [
|
|
619
|
-
placement:
|
|
621
|
+
u = at(i, a, async () => {
|
|
622
|
+
const { x: l, y: k } = await lt(i, a, {
|
|
623
|
+
middleware: [nt(6), ot({ padding: 8 }), it({ padding: 8 })],
|
|
624
|
+
placement: g.placement ?? "bottom-start",
|
|
620
625
|
strategy: "fixed"
|
|
621
626
|
});
|
|
622
|
-
Object.assign(
|
|
627
|
+
Object.assign(a.style, { left: `${l}px`, position: "fixed", top: `${k}px` });
|
|
623
628
|
});
|
|
624
629
|
}
|
|
625
|
-
async function
|
|
626
|
-
|
|
630
|
+
async function s(i) {
|
|
631
|
+
y.value ? b() : await d(i);
|
|
627
632
|
}
|
|
628
|
-
return
|
|
629
|
-
close:
|
|
630
|
-
contains: (
|
|
631
|
-
open:
|
|
632
|
-
toggle:
|
|
633
|
-
visible:
|
|
633
|
+
return be(b), {
|
|
634
|
+
close: b,
|
|
635
|
+
contains: (i) => e()?.contains(i) ?? !1,
|
|
636
|
+
open: d,
|
|
637
|
+
toggle: s,
|
|
638
|
+
visible: y
|
|
634
639
|
};
|
|
635
640
|
}
|
|
636
|
-
function
|
|
637
|
-
return e.length === 0 ?
|
|
641
|
+
function Ee(e, g) {
|
|
642
|
+
return e.length === 0 ? g : g.length === 0 ? e : `${e}
|
|
638
643
|
|
|
639
|
-
${
|
|
644
|
+
${g}`;
|
|
640
645
|
}
|
|
641
|
-
function
|
|
642
|
-
const
|
|
643
|
-
let
|
|
644
|
-
function
|
|
645
|
-
|
|
646
|
+
function Aa(e) {
|
|
647
|
+
const g = h(e.initialValue);
|
|
648
|
+
let y = !1;
|
|
649
|
+
function u(i, a) {
|
|
650
|
+
y = !0, a !== "markup" && e.getMarkupHost()?.setValue(i), a !== "visual" && e.getVisualHost()?.setValue(i), y = !1;
|
|
646
651
|
}
|
|
647
|
-
function
|
|
648
|
-
|
|
652
|
+
function b(i) {
|
|
653
|
+
i !== g.value && (g.value = i, u(i));
|
|
649
654
|
}
|
|
650
|
-
function
|
|
651
|
-
|
|
655
|
+
function d(i) {
|
|
656
|
+
i !== g.value && (g.value = i, e.onChange(i), u(i));
|
|
652
657
|
}
|
|
653
|
-
function
|
|
654
|
-
|
|
658
|
+
function s(i, a) {
|
|
659
|
+
i === g.value || y || (g.value = i, e.onChange(i), u(i, a));
|
|
655
660
|
}
|
|
656
|
-
return { setExternalValue:
|
|
661
|
+
return { setExternalValue: b, setValue: d, updateFromHost: s, value: g };
|
|
657
662
|
}
|
|
658
|
-
const
|
|
663
|
+
const Pa = ["data-locale", "data-mode", "data-theme"], za = {
|
|
659
664
|
key: 0,
|
|
660
665
|
class: "markdown-editor__header"
|
|
661
|
-
},
|
|
666
|
+
}, Fa = /* @__PURE__ */ J({
|
|
662
667
|
name: "MarkdownEditor",
|
|
663
668
|
__name: "MarkdownEditor",
|
|
664
669
|
props: {
|
|
@@ -674,8 +679,8 @@ const $a = ["data-locale", "data-mode", "data-theme"], Va = {
|
|
|
674
679
|
theme: { default: "auto" }
|
|
675
680
|
},
|
|
676
681
|
emits: ["cancel", "change", "mode-change", "update:modelValue", "update:mode", "submit"],
|
|
677
|
-
setup(e, { expose:
|
|
678
|
-
const
|
|
682
|
+
setup(e, { expose: g, emit: y }) {
|
|
683
|
+
const u = e, b = y, d = Xe(), s = et(), i = He()?.appContext, a = h(), M = h(), n = h(u.mode), l = h("https://"), k = h(""), I = h(""), ke = h(), A = h(""), Y = h(""), q = h(!1), L = h({
|
|
679
684
|
bold: !1,
|
|
680
685
|
bulletList: !1,
|
|
681
686
|
code: !1,
|
|
@@ -698,21 +703,21 @@ const $a = ["data-locale", "data-mode", "data-theme"], Va = {
|
|
|
698
703
|
quote: !1,
|
|
699
704
|
strikethrough: !1,
|
|
700
705
|
underline: !1
|
|
701
|
-
}),
|
|
702
|
-
let
|
|
703
|
-
const { setExternalValue:
|
|
704
|
-
getMarkupHost: () =>
|
|
705
|
-
getVisualHost: () =>
|
|
706
|
-
initialValue:
|
|
707
|
-
onChange: (
|
|
708
|
-
|
|
706
|
+
}), ie = Te(() => L.value.headingLevel?.toString() ?? "paragraph"), $e = Te(() => ie.value === "paragraph" ? "H" : `H${ie.value}`), we = h(), O = h(), he = h(), j = z(() => O.value?.getElement("code")), N = z(() => O.value?.getElement("formula")), U = z(() => O.value?.getElement("heading")), R = z(() => ke.value?.element), Z = z(() => he.value?.element, { placement: "top" }), $ = z(() => we.value?.element), W = z(() => O.value?.getElement("list")), Q = z(() => O.value?.getElement("mode"));
|
|
707
|
+
let x, se = "visual", ee = 0, re = !1, B;
|
|
708
|
+
const { setExternalValue: Ve, setValue: K, updateFromHost: ye, value: D } = Aa({
|
|
709
|
+
getMarkupHost: () => x,
|
|
710
|
+
getVisualHost: () => B,
|
|
711
|
+
initialValue: u.modelValue,
|
|
712
|
+
onChange: (t) => {
|
|
713
|
+
b("update:modelValue", t), b("change", t);
|
|
709
714
|
}
|
|
710
715
|
});
|
|
711
|
-
function
|
|
712
|
-
return
|
|
716
|
+
function de(t) {
|
|
717
|
+
return Ke(u.locale)[t];
|
|
713
718
|
}
|
|
714
|
-
function
|
|
715
|
-
|
|
719
|
+
function ue() {
|
|
720
|
+
x?.destroy(), B?.destroy(), x = void 0, B = void 0, L.value = {
|
|
716
721
|
bold: !1,
|
|
717
722
|
bulletList: !1,
|
|
718
723
|
code: !1,
|
|
@@ -737,557 +742,581 @@ const $a = ["data-locale", "data-mode", "data-theme"], Va = {
|
|
|
737
742
|
underline: !1
|
|
738
743
|
};
|
|
739
744
|
}
|
|
740
|
-
function
|
|
741
|
-
|
|
745
|
+
function Se(t) {
|
|
746
|
+
n.value === "markup" || n.value === "split" && typeof t == "object" ? x?.moveCursor(t) : B?.moveCursor(typeof t == "object" ? "start" : t);
|
|
742
747
|
}
|
|
743
|
-
function
|
|
744
|
-
|
|
748
|
+
function Ae(t) {
|
|
749
|
+
n.value === "markup" || n.value === "split" && x?.hasFocus() ? x?.insert(t) : B?.insert(t);
|
|
745
750
|
}
|
|
746
|
-
function
|
|
747
|
-
if (
|
|
751
|
+
function Pe() {
|
|
752
|
+
if (A.value.trim().length === 0)
|
|
748
753
|
return;
|
|
749
|
-
|
|
750
|
-
const
|
|
751
|
-
|
|
754
|
+
re = !0;
|
|
755
|
+
const t = Y.value.trim() || A.value.trim();
|
|
756
|
+
T() ? x?.run(s.setLink(A.value.trim(), void 0, t, q.value)) : V(void 0, d.setLink(A.value.trim(), t, t, q.value)), $.close();
|
|
752
757
|
}
|
|
753
|
-
function
|
|
754
|
-
|
|
758
|
+
function Me() {
|
|
759
|
+
$.close();
|
|
755
760
|
}
|
|
756
|
-
function
|
|
757
|
-
const
|
|
758
|
-
|
|
761
|
+
function ze() {
|
|
762
|
+
const t = l.value.trim();
|
|
763
|
+
t.length !== 0 && (T() ? x?.run(s.insertImage(t, k.value.trim() || "Image", I.value.trim() || void 0)) : V(void 0, d.insertImage(t, k.value.trim() || "Image", I.value.trim() || void 0)), R.close());
|
|
759
764
|
}
|
|
760
|
-
function
|
|
761
|
-
|
|
765
|
+
function Fe() {
|
|
766
|
+
R.close();
|
|
762
767
|
}
|
|
763
|
-
function
|
|
764
|
-
|
|
768
|
+
function Ne(t) {
|
|
769
|
+
T() ? x?.run(t === "paragraph" ? s.paragraph : s.heading(Number(t))) : t === "paragraph" ? V(void 0, d.paragraph) : V(void 0, d.heading(Number(t))), U.close();
|
|
765
770
|
}
|
|
766
|
-
async function
|
|
767
|
-
await
|
|
771
|
+
async function Re(t) {
|
|
772
|
+
T(), await U.toggle(t);
|
|
768
773
|
}
|
|
769
|
-
async function
|
|
770
|
-
await
|
|
774
|
+
async function De(t) {
|
|
775
|
+
T(), await j.toggle(t);
|
|
771
776
|
}
|
|
772
|
-
function
|
|
773
|
-
|
|
777
|
+
function Ce(t, o) {
|
|
778
|
+
T() ? x?.run(s[o]) : V(void 0, t), j.close();
|
|
774
779
|
}
|
|
775
|
-
async function
|
|
776
|
-
if (
|
|
777
|
-
|
|
780
|
+
async function Ie(t) {
|
|
781
|
+
if (T(), $.visible.value) {
|
|
782
|
+
$.close();
|
|
778
783
|
return;
|
|
779
784
|
}
|
|
780
|
-
|
|
785
|
+
A.value = L.value.linkHref ?? "", Y.value = L.value.linkText ?? window.getSelection()?.toString().trim() ?? "", q.value = L.value.linkOpenInNewWindow, await $.open(t);
|
|
781
786
|
}
|
|
782
|
-
async function
|
|
783
|
-
const
|
|
784
|
-
if (
|
|
785
|
-
|
|
787
|
+
async function pe(t) {
|
|
788
|
+
const o = L.value.linkHref;
|
|
789
|
+
if (o === void 0 && t === void 0) {
|
|
790
|
+
Me();
|
|
786
791
|
return;
|
|
787
792
|
}
|
|
788
|
-
|
|
789
|
-
const
|
|
790
|
-
|
|
793
|
+
A.value = t?.getAttribute("href") ?? o ?? "", Y.value = t?.textContent ?? L.value.linkText ?? "", q.value = t?.getAttribute("target") === "_blank" || L.value.linkOpenInNewWindow;
|
|
794
|
+
const v = window.getSelection()?.anchorNode, P = v instanceof Element ? v : v?.parentElement, ve = t ?? P?.closest("a");
|
|
795
|
+
ve != null && await $.open(ve);
|
|
791
796
|
}
|
|
792
|
-
function
|
|
793
|
-
const
|
|
794
|
-
if (!(
|
|
795
|
-
const
|
|
796
|
-
if (
|
|
797
|
-
|
|
797
|
+
function qe(t) {
|
|
798
|
+
const o = t.target;
|
|
799
|
+
if (!(o instanceof Element)) return;
|
|
800
|
+
const v = o.closest(".ProseMirror img");
|
|
801
|
+
if (v !== null) {
|
|
802
|
+
t.preventDefault(), B?.selectElement(v), Z.open(v);
|
|
798
803
|
return;
|
|
799
804
|
}
|
|
800
|
-
const
|
|
801
|
-
|
|
805
|
+
const P = o.closest(".ProseMirror a");
|
|
806
|
+
P !== null && (t.preventDefault(), B?.selectElement(P), pe(P));
|
|
802
807
|
}
|
|
803
|
-
async function
|
|
804
|
-
await
|
|
808
|
+
async function Oe(t) {
|
|
809
|
+
T(), await W.toggle(t);
|
|
805
810
|
}
|
|
806
|
-
function
|
|
807
|
-
|
|
811
|
+
function te(t, o) {
|
|
812
|
+
T() ? x?.run(s[o]) : V(void 0, t), W.close();
|
|
808
813
|
}
|
|
809
|
-
async function
|
|
810
|
-
await
|
|
814
|
+
async function je(t) {
|
|
815
|
+
T(), await R.toggle(t);
|
|
811
816
|
}
|
|
812
|
-
async function
|
|
813
|
-
|
|
814
|
-
const
|
|
815
|
-
|
|
817
|
+
async function xe(t) {
|
|
818
|
+
V(void 0, t), await ne();
|
|
819
|
+
const o = M.value?.querySelector(".ProseMirror img.ProseMirror-selectednode");
|
|
820
|
+
o != null && await Z.open(o);
|
|
816
821
|
}
|
|
817
|
-
async function
|
|
818
|
-
await
|
|
822
|
+
async function Ue(t) {
|
|
823
|
+
await Q.toggle(t);
|
|
819
824
|
}
|
|
820
|
-
async function
|
|
821
|
-
|
|
825
|
+
async function We(t) {
|
|
826
|
+
Q.close(), await ce(t);
|
|
822
827
|
}
|
|
823
|
-
function
|
|
824
|
-
|
|
828
|
+
function Qe() {
|
|
829
|
+
T() ? x?.run(s.insertHtml) : B?.run(d.insertHtml);
|
|
825
830
|
}
|
|
826
|
-
async function
|
|
827
|
-
|
|
831
|
+
async function Ge() {
|
|
832
|
+
N.close(), !L.value.formula && (T() ? x?.run(s.insertMathBlock) : B?.run(d.insertMathBlock));
|
|
828
833
|
}
|
|
829
|
-
function
|
|
830
|
-
|
|
834
|
+
function Ye() {
|
|
835
|
+
N.close(), T() ? x?.run(s.insertInlineMath) : B?.run(d.insertInlineMath);
|
|
831
836
|
}
|
|
832
|
-
async function
|
|
833
|
-
|
|
837
|
+
async function Ze(t) {
|
|
838
|
+
T(), L.value.formula || await N.toggle(t);
|
|
834
839
|
}
|
|
835
|
-
function
|
|
836
|
-
const
|
|
837
|
-
if (
|
|
838
|
-
for (const
|
|
839
|
-
|
|
840
|
+
function Le(t) {
|
|
841
|
+
const o = t.target;
|
|
842
|
+
if (o instanceof Node)
|
|
843
|
+
for (const v of [U, j, N, $, W, R, Z, Q])
|
|
844
|
+
v.contains(o) || v.close();
|
|
840
845
|
}
|
|
841
|
-
function
|
|
842
|
-
if (
|
|
843
|
-
for (const
|
|
846
|
+
function Be(t) {
|
|
847
|
+
if (t.key === "Escape")
|
|
848
|
+
for (const o of [U, j, N, $, W, R, Z, Q]) o.close();
|
|
844
849
|
}
|
|
845
|
-
function
|
|
846
|
-
|
|
847
|
-
directiveAppContext:
|
|
848
|
-
directiveComponents:
|
|
849
|
-
editable: !
|
|
850
|
-
initialValue:
|
|
851
|
-
onCancel: () => (
|
|
852
|
-
onChange: (
|
|
853
|
-
|
|
850
|
+
function me() {
|
|
851
|
+
n.value !== "markup" && M.value !== void 0 && (B = Je({
|
|
852
|
+
directiveAppContext: i,
|
|
853
|
+
directiveComponents: u.directiveComponents,
|
|
854
|
+
editable: !u.readonly,
|
|
855
|
+
initialValue: D.value,
|
|
856
|
+
onCancel: () => (b("cancel"), !0),
|
|
857
|
+
onChange: (t) => {
|
|
858
|
+
ye(t, "visual"), M.value !== void 0 && ge(M.value, u.locale);
|
|
854
859
|
},
|
|
855
|
-
onSelectionChange: (
|
|
856
|
-
|
|
860
|
+
onSelectionChange: (t) => {
|
|
861
|
+
L.value = t, re ? re = !1 : pe();
|
|
857
862
|
},
|
|
858
|
-
onSubmit: () => (
|
|
859
|
-
placeholder:
|
|
860
|
-
target:
|
|
861
|
-
}),
|
|
862
|
-
editable: !
|
|
863
|
-
initialValue:
|
|
864
|
-
onChange: (
|
|
865
|
-
target:
|
|
863
|
+
onSubmit: () => (b("submit"), !0),
|
|
864
|
+
placeholder: u.placeholder,
|
|
865
|
+
target: M.value
|
|
866
|
+
}), ge(M.value, u.locale)), n.value !== "wysiwyg" && a.value !== void 0 && (x = _e({
|
|
867
|
+
editable: !u.readonly,
|
|
868
|
+
initialValue: D.value,
|
|
869
|
+
onChange: (t) => ye(t, "markup"),
|
|
870
|
+
target: a.value
|
|
866
871
|
}));
|
|
867
872
|
}
|
|
868
|
-
async function
|
|
869
|
-
if (
|
|
873
|
+
async function ce(t) {
|
|
874
|
+
if (t === n.value)
|
|
870
875
|
return;
|
|
871
|
-
const
|
|
872
|
-
|
|
876
|
+
const o = ++ee;
|
|
877
|
+
n.value = t, b("update:mode", t), b("mode-change", t), ue(), await ne(), o === ee && me();
|
|
873
878
|
}
|
|
874
|
-
function
|
|
875
|
-
|
|
879
|
+
function T() {
|
|
880
|
+
return n.value === "markup" ? !0 : n.value === "wysiwyg" ? !1 : (x?.hasFocus() ? se = "markup" : B?.hasFocus() && (se = "visual"), se === "markup");
|
|
881
|
+
}
|
|
882
|
+
function V(t, o) {
|
|
883
|
+
if (!u.readonly) {
|
|
884
|
+
if (T() && t !== void 0) {
|
|
885
|
+
const P = {
|
|
886
|
+
bold: s.bold,
|
|
887
|
+
"fold-heading": s.toggleHeadingFolding,
|
|
888
|
+
"horizontal-rule": s.horizontalRule,
|
|
889
|
+
italic: s.italic,
|
|
890
|
+
mark: s.mark,
|
|
891
|
+
mermaid: s.insertMermaid,
|
|
892
|
+
quote: s.quote,
|
|
893
|
+
redo: s.redo,
|
|
894
|
+
strike: s.strikethrough,
|
|
895
|
+
table: s.insertTable(),
|
|
896
|
+
underline: s.underline,
|
|
897
|
+
undo: s.undo
|
|
898
|
+
}[t];
|
|
899
|
+
P !== void 0 && x?.run(P);
|
|
900
|
+
return;
|
|
901
|
+
}
|
|
902
|
+
B?.run(o);
|
|
903
|
+
}
|
|
876
904
|
}
|
|
877
|
-
return
|
|
878
|
-
() =>
|
|
879
|
-
(
|
|
880
|
-
|
|
905
|
+
return ae(
|
|
906
|
+
() => u.modelValue,
|
|
907
|
+
(t) => {
|
|
908
|
+
t !== D.value && Ve(t);
|
|
881
909
|
}
|
|
882
|
-
),
|
|
883
|
-
() =>
|
|
884
|
-
(
|
|
885
|
-
|
|
910
|
+
), ae(
|
|
911
|
+
() => u.mode,
|
|
912
|
+
(t) => {
|
|
913
|
+
ce(t);
|
|
886
914
|
}
|
|
887
|
-
),
|
|
888
|
-
() =>
|
|
889
|
-
(
|
|
890
|
-
|
|
915
|
+
), ae(
|
|
916
|
+
() => u.locale,
|
|
917
|
+
(t) => {
|
|
918
|
+
M.value !== void 0 && ge(M.value, t);
|
|
891
919
|
}
|
|
892
|
-
),
|
|
893
|
-
() =>
|
|
920
|
+
), ae(
|
|
921
|
+
() => u.readonly,
|
|
894
922
|
async () => {
|
|
895
|
-
const
|
|
896
|
-
|
|
923
|
+
const t = ++ee;
|
|
924
|
+
ue(), await ne(), t === ee && me();
|
|
897
925
|
}
|
|
898
|
-
),
|
|
899
|
-
|
|
900
|
-
}),
|
|
901
|
-
|
|
902
|
-
}),
|
|
903
|
-
append: (
|
|
904
|
-
clear: () =>
|
|
905
|
-
focus: () =>
|
|
906
|
-
getMode: () =>
|
|
907
|
-
getValue: () =>
|
|
908
|
-
hasFocus: () =>
|
|
909
|
-
insert:
|
|
910
|
-
isEmpty: () =>
|
|
911
|
-
moveCursor:
|
|
912
|
-
prepend: (
|
|
913
|
-
replace:
|
|
914
|
-
setMode:
|
|
915
|
-
setValue:
|
|
916
|
-
}), (
|
|
926
|
+
), rt(() => {
|
|
927
|
+
me(), document.addEventListener("pointerdown", Le), document.addEventListener("keydown", Be);
|
|
928
|
+
}), be(() => {
|
|
929
|
+
ue(), document.removeEventListener("pointerdown", Le), document.removeEventListener("keydown", Be);
|
|
930
|
+
}), g({
|
|
931
|
+
append: (t) => K(Ee(D.value, t)),
|
|
932
|
+
clear: () => K(""),
|
|
933
|
+
focus: () => n.value === "markup" ? x?.focus() : B?.focus(),
|
|
934
|
+
getMode: () => n.value,
|
|
935
|
+
getValue: () => D.value,
|
|
936
|
+
hasFocus: () => n.value === "markup" ? x?.hasFocus() ?? !1 : B?.hasFocus() ?? !1,
|
|
937
|
+
insert: Ae,
|
|
938
|
+
isEmpty: () => D.value.length === 0,
|
|
939
|
+
moveCursor: Se,
|
|
940
|
+
prepend: (t) => K(Ee(t, D.value)),
|
|
941
|
+
replace: K,
|
|
942
|
+
setMode: ce,
|
|
943
|
+
setValue: K
|
|
944
|
+
}), (t, o) => (r(), m("section", {
|
|
917
945
|
class: "markdown-editor",
|
|
918
946
|
"data-locale": e.locale,
|
|
919
|
-
"data-mode":
|
|
947
|
+
"data-mode": n.value,
|
|
920
948
|
"data-theme": e.theme,
|
|
921
|
-
onClick:
|
|
949
|
+
onClick: qe
|
|
922
950
|
}, [
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
])) :
|
|
926
|
-
e.readonly ?
|
|
951
|
+
t.$slots.header ? (r(), m("header", za, [
|
|
952
|
+
fe(t.$slots, "header", {}, void 0, !0)
|
|
953
|
+
])) : E("", !0),
|
|
954
|
+
e.readonly ? E("", !0) : (r(), X(Va, {
|
|
927
955
|
key: 1,
|
|
928
|
-
commands:
|
|
929
|
-
"code-menu-visible":
|
|
930
|
-
"formula-menu-visible":
|
|
931
|
-
"heading-menu-visible":
|
|
932
|
-
"image-editor-visible":
|
|
933
|
-
"link-editor-visible":
|
|
934
|
-
"list-menu-visible":
|
|
935
|
-
mode:
|
|
936
|
-
"mode-menu-visible":
|
|
937
|
-
state:
|
|
938
|
-
"text-style-label":
|
|
956
|
+
commands: c(d),
|
|
957
|
+
"code-menu-visible": c(j).visible.value,
|
|
958
|
+
"formula-menu-visible": c(N).visible.value,
|
|
959
|
+
"heading-menu-visible": c(U).visible.value,
|
|
960
|
+
"image-editor-visible": c(R).visible.value,
|
|
961
|
+
"link-editor-visible": c($).visible.value,
|
|
962
|
+
"list-menu-visible": c(W).visible.value,
|
|
963
|
+
mode: n.value,
|
|
964
|
+
"mode-menu-visible": c(Q).visible.value,
|
|
965
|
+
state: L.value,
|
|
966
|
+
"text-style-label": $e.value,
|
|
939
967
|
"toolbar-preset": e.toolbarPreset,
|
|
940
968
|
"toolbar-config": e.toolbarConfig,
|
|
941
|
-
translate:
|
|
942
|
-
onExecute:
|
|
943
|
-
onInsertHtml:
|
|
944
|
-
onToggleFormulaMenu:
|
|
945
|
-
onToggleCodeMenu:
|
|
946
|
-
onToggleHeadingMenu:
|
|
947
|
-
onToggleImageEditor:
|
|
948
|
-
onToggleLinkEditor:
|
|
949
|
-
onToggleListMenu:
|
|
950
|
-
onToggleModeMenu:
|
|
969
|
+
translate: de,
|
|
970
|
+
onExecute: V,
|
|
971
|
+
onInsertHtml: Qe,
|
|
972
|
+
onToggleFormulaMenu: Ze,
|
|
973
|
+
onToggleCodeMenu: De,
|
|
974
|
+
onToggleHeadingMenu: Re,
|
|
975
|
+
onToggleImageEditor: je,
|
|
976
|
+
onToggleLinkEditor: Ie,
|
|
977
|
+
onToggleListMenu: Oe,
|
|
978
|
+
onToggleModeMenu: Ue
|
|
951
979
|
}, {
|
|
952
|
-
default:
|
|
953
|
-
|
|
980
|
+
default: dt((v) => [
|
|
981
|
+
fe(t.$slots, "toolbar", ut(mt(v)), void 0, !0)
|
|
954
982
|
]),
|
|
955
983
|
_: 3
|
|
956
984
|
}, 8, ["commands", "code-menu-visible", "formula-menu-visible", "heading-menu-visible", "image-editor-visible", "link-editor-visible", "list-menu-visible", "mode", "mode-menu-visible", "state", "text-style-label", "toolbar-preset", "toolbar-config"])),
|
|
957
|
-
(
|
|
958
|
-
C(
|
|
985
|
+
(r(), X(ct, { to: "body" }, [
|
|
986
|
+
C(ea, {
|
|
959
987
|
ref_key: "floatingMenus",
|
|
960
|
-
ref:
|
|
961
|
-
"code-visible":
|
|
962
|
-
"formula-visible":
|
|
963
|
-
"heading-visible":
|
|
964
|
-
"list-visible":
|
|
965
|
-
mode:
|
|
966
|
-
"mode-visible":
|
|
967
|
-
state:
|
|
968
|
-
"text-style":
|
|
988
|
+
ref: O,
|
|
989
|
+
"code-visible": c(j).visible.value,
|
|
990
|
+
"formula-visible": c(N).visible.value,
|
|
991
|
+
"heading-visible": c(U).visible.value,
|
|
992
|
+
"list-visible": c(W).visible.value,
|
|
993
|
+
mode: n.value,
|
|
994
|
+
"mode-visible": c(Q).visible.value,
|
|
995
|
+
state: L.value,
|
|
996
|
+
"text-style": ie.value,
|
|
969
997
|
theme: e.theme,
|
|
970
|
-
translate:
|
|
971
|
-
onBulletList:
|
|
972
|
-
onCodeBlock:
|
|
973
|
-
onIndentList:
|
|
974
|
-
onInlineCode:
|
|
975
|
-
onInlineFormula:
|
|
976
|
-
onMathBlock:
|
|
977
|
-
onOrderedList:
|
|
978
|
-
onOutdentList:
|
|
979
|
-
onSelectMode:
|
|
980
|
-
onSelectTextStyle:
|
|
998
|
+
translate: de,
|
|
999
|
+
onBulletList: o[0] || (o[0] = (v) => te(c(d).bulletList, "bulletList")),
|
|
1000
|
+
onCodeBlock: o[1] || (o[1] = (v) => Ce(c(d).codeBlock, "codeBlock")),
|
|
1001
|
+
onIndentList: o[2] || (o[2] = (v) => te(c(d).sinkListItem, "indentList")),
|
|
1002
|
+
onInlineCode: o[3] || (o[3] = (v) => Ce(c(d).code, "code")),
|
|
1003
|
+
onInlineFormula: Ye,
|
|
1004
|
+
onMathBlock: Ge,
|
|
1005
|
+
onOrderedList: o[4] || (o[4] = (v) => te(c(d).orderedList, "orderedList")),
|
|
1006
|
+
onOutdentList: o[5] || (o[5] = (v) => te(c(d).liftListItem, "outdentList")),
|
|
1007
|
+
onSelectMode: We,
|
|
1008
|
+
onSelectTextStyle: Ne
|
|
981
1009
|
}, null, 8, ["code-visible", "formula-visible", "heading-visible", "list-visible", "mode", "mode-visible", "state", "text-style", "theme"]),
|
|
982
|
-
|
|
1010
|
+
c($).visible.value ? (r(), X(kt, {
|
|
983
1011
|
key: 0,
|
|
984
1012
|
ref_key: "linkForm",
|
|
985
|
-
ref:
|
|
986
|
-
"has-current-link":
|
|
1013
|
+
ref: we,
|
|
1014
|
+
"has-current-link": L.value.linkHref !== void 0,
|
|
987
1015
|
locale: e.locale,
|
|
988
|
-
"open-in-new-window":
|
|
1016
|
+
"open-in-new-window": q.value,
|
|
989
1017
|
theme: e.theme,
|
|
990
|
-
text:
|
|
991
|
-
url:
|
|
992
|
-
onApply:
|
|
993
|
-
onCancel:
|
|
994
|
-
onRemove:
|
|
995
|
-
"onUpdate:text":
|
|
996
|
-
"onUpdate:url":
|
|
997
|
-
"onUpdate:openInNewWindow":
|
|
998
|
-
}, null, 8, ["has-current-link", "locale", "open-in-new-window", "theme", "text", "url"])) :
|
|
999
|
-
|
|
1018
|
+
text: Y.value,
|
|
1019
|
+
url: A.value,
|
|
1020
|
+
onApply: Pe,
|
|
1021
|
+
onCancel: Me,
|
|
1022
|
+
onRemove: o[6] || (o[6] = (v) => V(void 0, c(d).removeLink)),
|
|
1023
|
+
"onUpdate:text": o[7] || (o[7] = (v) => Y.value = v),
|
|
1024
|
+
"onUpdate:url": o[8] || (o[8] = (v) => A.value = v),
|
|
1025
|
+
"onUpdate:openInNewWindow": o[9] || (o[9] = (v) => q.value = v)
|
|
1026
|
+
}, null, 8, ["has-current-link", "locale", "open-in-new-window", "theme", "text", "url"])) : E("", !0),
|
|
1027
|
+
c(R).visible.value ? (r(), X(wt, {
|
|
1000
1028
|
key: 1,
|
|
1001
1029
|
ref_key: "imageForm",
|
|
1002
|
-
ref:
|
|
1003
|
-
alt:
|
|
1030
|
+
ref: ke,
|
|
1031
|
+
alt: k.value,
|
|
1004
1032
|
locale: e.locale,
|
|
1005
1033
|
theme: e.theme,
|
|
1006
|
-
title:
|
|
1034
|
+
title: I.value,
|
|
1007
1035
|
"upload-image": e.uploadImage,
|
|
1008
|
-
url:
|
|
1009
|
-
onApply:
|
|
1010
|
-
onCancel:
|
|
1011
|
-
"onUpdate:alt":
|
|
1012
|
-
"onUpdate:title":
|
|
1013
|
-
"onUpdate:url":
|
|
1014
|
-
}, null, 8, ["alt", "locale", "theme", "title", "upload-image", "url"])) :
|
|
1015
|
-
|
|
1036
|
+
url: l.value,
|
|
1037
|
+
onApply: ze,
|
|
1038
|
+
onCancel: Fe,
|
|
1039
|
+
"onUpdate:alt": o[10] || (o[10] = (v) => k.value = v),
|
|
1040
|
+
"onUpdate:title": o[11] || (o[11] = (v) => I.value = v),
|
|
1041
|
+
"onUpdate:url": o[12] || (o[12] = (v) => l.value = v)
|
|
1042
|
+
}, null, 8, ["alt", "locale", "theme", "title", "upload-image", "url"])) : E("", !0),
|
|
1043
|
+
c(Z).visible.value ? (r(), X(oa, {
|
|
1016
1044
|
key: 2,
|
|
1017
1045
|
ref_key: "imageActions",
|
|
1018
|
-
ref:
|
|
1019
|
-
"object-fit":
|
|
1046
|
+
ref: he,
|
|
1047
|
+
"object-fit": L.value.imageObjectFit,
|
|
1020
1048
|
theme: e.theme,
|
|
1021
|
-
translate:
|
|
1022
|
-
onFullWidth:
|
|
1023
|
-
onObjectFit:
|
|
1024
|
-
}, null, 8, ["object-fit", "theme"])) :
|
|
1049
|
+
translate: de,
|
|
1050
|
+
onFullWidth: o[13] || (o[13] = (v) => xe(c(d).setImageDisplay("100%", "contain", null))),
|
|
1051
|
+
onObjectFit: o[14] || (o[14] = (v) => xe(c(d).setImageDisplay(void 0, v)))
|
|
1052
|
+
}, null, 8, ["object-fit", "theme"])) : E("", !0)
|
|
1025
1053
|
])),
|
|
1026
|
-
|
|
1027
|
-
class:
|
|
1054
|
+
f("div", {
|
|
1055
|
+
class: vt(["markdown-editor__hosts", { "markdown-editor__hosts--split": n.value === "split" }])
|
|
1028
1056
|
}, [
|
|
1029
|
-
|
|
1057
|
+
n.value !== "markup" ? (r(), m("div", {
|
|
1030
1058
|
key: 0,
|
|
1031
1059
|
ref_key: "visualTarget",
|
|
1032
|
-
ref:
|
|
1060
|
+
ref: M,
|
|
1033
1061
|
class: "markdown-editor__visual"
|
|
1034
|
-
}, null, 512)) :
|
|
1035
|
-
|
|
1062
|
+
}, null, 512)) : E("", !0),
|
|
1063
|
+
n.value !== "wysiwyg" ? (r(), m("div", {
|
|
1036
1064
|
key: 1,
|
|
1037
1065
|
ref_key: "markupTarget",
|
|
1038
|
-
ref:
|
|
1066
|
+
ref: a,
|
|
1039
1067
|
class: "markdown-editor__markup"
|
|
1040
|
-
}, null, 512)) :
|
|
1068
|
+
}, null, 512)) : E("", !0)
|
|
1041
1069
|
], 2)
|
|
1042
|
-
], 8,
|
|
1070
|
+
], 8, Pa));
|
|
1043
1071
|
}
|
|
1044
|
-
}),
|
|
1045
|
-
function
|
|
1046
|
-
const
|
|
1047
|
-
return
|
|
1048
|
-
|
|
1049
|
-
}),
|
|
1050
|
-
|
|
1051
|
-
}),
|
|
1052
|
-
|
|
1053
|
-
}),
|
|
1054
|
-
|
|
1055
|
-
}),
|
|
1056
|
-
destroy:
|
|
1057
|
-
editor:
|
|
1058
|
-
mode:
|
|
1059
|
-
readonly:
|
|
1060
|
-
toolbarVisible:
|
|
1061
|
-
value:
|
|
1072
|
+
}), Wa = /* @__PURE__ */ _(Fa, [["__scopeId", "data-v-44b8d7ae"]]);
|
|
1073
|
+
function Qa(e = {}) {
|
|
1074
|
+
const g = tt(e), y = h(g.getValue()), u = h(g.getMode()), b = h(g.readonly), d = h(g.toolbarVisible), s = () => g.destroy();
|
|
1075
|
+
return g.on("change", (i) => {
|
|
1076
|
+
y.value = i;
|
|
1077
|
+
}), g.on("modeChange", (i) => {
|
|
1078
|
+
u.value = i;
|
|
1079
|
+
}), g.on("changeReadonly", ({ readonly: i }) => {
|
|
1080
|
+
b.value = i;
|
|
1081
|
+
}), g.on("changeToolbarVisibility", ({ visible: i }) => {
|
|
1082
|
+
d.value = i;
|
|
1083
|
+
}), He() !== null && be(s), {
|
|
1084
|
+
destroy: s,
|
|
1085
|
+
editor: g,
|
|
1086
|
+
mode: le(u),
|
|
1087
|
+
readonly: le(b),
|
|
1088
|
+
toolbarVisible: le(d),
|
|
1089
|
+
value: le(y)
|
|
1062
1090
|
};
|
|
1063
1091
|
}
|
|
1064
1092
|
export {
|
|
1065
|
-
|
|
1066
|
-
|
|
1067
|
-
|
|
1068
|
-
|
|
1069
|
-
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1074
|
-
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
|
|
1089
|
-
|
|
1090
|
-
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1100
|
-
|
|
1101
|
-
|
|
1102
|
-
|
|
1103
|
-
|
|
1104
|
-
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
|
|
1110
|
-
|
|
1111
|
-
|
|
1112
|
-
|
|
1113
|
-
|
|
1114
|
-
|
|
1115
|
-
|
|
1116
|
-
|
|
1117
|
-
|
|
1118
|
-
|
|
1119
|
-
|
|
1120
|
-
|
|
1121
|
-
|
|
1122
|
-
|
|
1123
|
-
|
|
1124
|
-
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
|
|
1128
|
-
|
|
1129
|
-
|
|
1130
|
-
|
|
1131
|
-
|
|
1132
|
-
|
|
1133
|
-
|
|
1134
|
-
|
|
1135
|
-
|
|
1136
|
-
|
|
1137
|
-
|
|
1138
|
-
|
|
1139
|
-
|
|
1140
|
-
|
|
1141
|
-
|
|
1142
|
-
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
|
|
1146
|
-
|
|
1147
|
-
|
|
1148
|
-
|
|
1149
|
-
|
|
1150
|
-
|
|
1151
|
-
|
|
1152
|
-
|
|
1153
|
-
|
|
1154
|
-
|
|
1155
|
-
|
|
1156
|
-
|
|
1157
|
-
|
|
1158
|
-
|
|
1159
|
-
|
|
1160
|
-
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
|
|
1164
|
-
|
|
1165
|
-
|
|
1166
|
-
|
|
1167
|
-
|
|
1168
|
-
|
|
1169
|
-
|
|
1170
|
-
|
|
1171
|
-
|
|
1172
|
-
|
|
1173
|
-
|
|
1174
|
-
|
|
1175
|
-
|
|
1176
|
-
|
|
1177
|
-
|
|
1178
|
-
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
|
|
1182
|
-
|
|
1183
|
-
|
|
1184
|
-
|
|
1185
|
-
|
|
1186
|
-
|
|
1187
|
-
|
|
1188
|
-
|
|
1189
|
-
|
|
1190
|
-
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
|
|
1200
|
-
|
|
1201
|
-
|
|
1202
|
-
|
|
1203
|
-
|
|
1204
|
-
|
|
1205
|
-
|
|
1206
|
-
|
|
1207
|
-
|
|
1208
|
-
|
|
1209
|
-
|
|
1210
|
-
|
|
1211
|
-
|
|
1212
|
-
|
|
1213
|
-
|
|
1214
|
-
|
|
1215
|
-
|
|
1216
|
-
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
|
|
1220
|
-
|
|
1221
|
-
|
|
1222
|
-
|
|
1223
|
-
|
|
1224
|
-
|
|
1225
|
-
|
|
1226
|
-
|
|
1227
|
-
|
|
1228
|
-
|
|
1229
|
-
|
|
1230
|
-
|
|
1231
|
-
|
|
1232
|
-
|
|
1233
|
-
|
|
1234
|
-
|
|
1235
|
-
|
|
1236
|
-
|
|
1237
|
-
|
|
1238
|
-
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
|
|
1243
|
-
|
|
1244
|
-
|
|
1245
|
-
|
|
1246
|
-
|
|
1247
|
-
|
|
1248
|
-
|
|
1249
|
-
|
|
1250
|
-
|
|
1251
|
-
|
|
1252
|
-
|
|
1253
|
-
|
|
1254
|
-
|
|
1255
|
-
|
|
1256
|
-
|
|
1257
|
-
|
|
1258
|
-
|
|
1259
|
-
|
|
1260
|
-
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
|
|
1265
|
-
|
|
1266
|
-
|
|
1267
|
-
|
|
1268
|
-
|
|
1269
|
-
|
|
1270
|
-
|
|
1271
|
-
|
|
1272
|
-
|
|
1273
|
-
|
|
1274
|
-
|
|
1275
|
-
|
|
1276
|
-
|
|
1277
|
-
|
|
1278
|
-
|
|
1279
|
-
|
|
1280
|
-
|
|
1281
|
-
|
|
1282
|
-
|
|
1283
|
-
|
|
1284
|
-
|
|
1285
|
-
|
|
1286
|
-
|
|
1287
|
-
|
|
1288
|
-
|
|
1289
|
-
|
|
1290
|
-
|
|
1291
|
-
|
|
1292
|
-
|
|
1093
|
+
nl as ActionsManager,
|
|
1094
|
+
El as BaseInputRules,
|
|
1095
|
+
Hl as BaseKeymap,
|
|
1096
|
+
$l as BaseSchema,
|
|
1097
|
+
Vl as Blockquote,
|
|
1098
|
+
Ei as BlockquoteSpecs,
|
|
1099
|
+
Sl as Bold,
|
|
1100
|
+
Hi as BoldAttrs,
|
|
1101
|
+
$i as BoldSpecs,
|
|
1102
|
+
Vi as BreakNodeName,
|
|
1103
|
+
Al as Breaks,
|
|
1104
|
+
Si as BreaksSpecs,
|
|
1105
|
+
Pl as ClicksOnEdges,
|
|
1106
|
+
zl as Clipboard,
|
|
1107
|
+
Fl as Code,
|
|
1108
|
+
Nl as CodeBlock,
|
|
1109
|
+
Ai as CodeBlockAttrs,
|
|
1110
|
+
Pi as CodeBlockSpecs,
|
|
1111
|
+
zi as CodeSpecs,
|
|
1112
|
+
yi as CommonMarkPreset,
|
|
1113
|
+
Li as CommonMarkSpecsPreset,
|
|
1114
|
+
Rl as Cursor,
|
|
1115
|
+
Mi as DefaultPreset,
|
|
1116
|
+
Dl as Deflist,
|
|
1117
|
+
Fi as DeflistAttr,
|
|
1118
|
+
Ni as DeflistNode,
|
|
1119
|
+
Ri as DeflistSpecs,
|
|
1120
|
+
Il as EditorModeKeymap,
|
|
1121
|
+
ol as EventEmitter,
|
|
1122
|
+
il as ExtensionBuilder,
|
|
1123
|
+
sl as ExtensionPriority,
|
|
1124
|
+
rl as ExtensionsManager,
|
|
1125
|
+
Ci as FullPreset,
|
|
1126
|
+
Bi as FullSpecsPreset,
|
|
1127
|
+
ql as GapCursorSelection,
|
|
1128
|
+
Ol as Heading,
|
|
1129
|
+
Di as HeadingSpecs,
|
|
1130
|
+
jl as History,
|
|
1131
|
+
Ul as HistoryAction,
|
|
1132
|
+
Wl as HorizontalRule,
|
|
1133
|
+
Ii as HorizontalRuleSpecs,
|
|
1134
|
+
Ql as Html,
|
|
1135
|
+
Gl as HtmlAttr,
|
|
1136
|
+
Yl as HtmlNode,
|
|
1137
|
+
Zl as Image,
|
|
1138
|
+
Kl as ImageAttr,
|
|
1139
|
+
Xl as Italic,
|
|
1140
|
+
qi as ItalicAttrs,
|
|
1141
|
+
Oi as ItalicSpecs,
|
|
1142
|
+
Za as Lang,
|
|
1143
|
+
Jl as Link,
|
|
1144
|
+
ji as LinkAttr,
|
|
1145
|
+
Ui as LinkSpecs,
|
|
1146
|
+
_l as Lists,
|
|
1147
|
+
dl as Logger,
|
|
1148
|
+
ul as Logger2,
|
|
1149
|
+
en as Mark,
|
|
1150
|
+
ml as MarkdownCodec,
|
|
1151
|
+
Wa as MarkdownEditor,
|
|
1152
|
+
ki as MarkdownEditorForm,
|
|
1153
|
+
wt as MarkdownEditorImageForm,
|
|
1154
|
+
kt as MarkdownEditorLinkForm,
|
|
1155
|
+
wi as MarkdownEditorTextInput,
|
|
1156
|
+
cl as MarkdownParser,
|
|
1157
|
+
vl as MarkdownParserDynamicModifier,
|
|
1158
|
+
tn as Mermaid,
|
|
1159
|
+
gl as ParserTokenRegistry,
|
|
1160
|
+
fl as ParserTokensRegistry,
|
|
1161
|
+
an as Placeholder,
|
|
1162
|
+
ln as QuoteLink,
|
|
1163
|
+
nn as Resizable,
|
|
1164
|
+
bl as SafeEventEmitter,
|
|
1165
|
+
kl as SchemaDynamicModifier,
|
|
1166
|
+
wl as SchemaSpecRegistry,
|
|
1167
|
+
on as Selection,
|
|
1168
|
+
sn as SelectionContext,
|
|
1169
|
+
hl as SerializerTokenRegistry,
|
|
1170
|
+
yl as SerializerTokensRegistry,
|
|
1171
|
+
rn as Strike,
|
|
1172
|
+
dn as Table,
|
|
1173
|
+
Wi as TableAttrs,
|
|
1174
|
+
Qi as TableCellAlign,
|
|
1175
|
+
Gi as TableNode,
|
|
1176
|
+
Yi as TableSpecs,
|
|
1177
|
+
un as Underline,
|
|
1178
|
+
mn as VERSION,
|
|
1179
|
+
Ml as WysiwygContentHandler,
|
|
1180
|
+
cn as YfmHtmlBlock,
|
|
1181
|
+
pi as ZeroPreset,
|
|
1182
|
+
vn as addBreak,
|
|
1183
|
+
gn as addEmptyDefaultTextblockToEndOfDocumentActionName,
|
|
1184
|
+
fn as addEmptyDefaultTextblockToStartOfDocumentActionName,
|
|
1185
|
+
bn as addHorizontalRule,
|
|
1186
|
+
kn as addImage,
|
|
1187
|
+
wn as addParagraphToEnd,
|
|
1188
|
+
hn as addParagraphToStart,
|
|
1189
|
+
yn as addTableColumn,
|
|
1190
|
+
Mn as addTableRow,
|
|
1191
|
+
Cn as arrowDown,
|
|
1192
|
+
pn as arrowLeft,
|
|
1193
|
+
xn as arrowRight,
|
|
1194
|
+
Ln as arrowUp,
|
|
1195
|
+
Cl as basicMarkdownCodec,
|
|
1196
|
+
pl as basicMarkdownSchema,
|
|
1197
|
+
Zi as blockquoteNodeName,
|
|
1198
|
+
Ki as boldMarkName,
|
|
1199
|
+
el as cn,
|
|
1200
|
+
Xi as codeBlockNodeName,
|
|
1201
|
+
Ji as codeMarkName,
|
|
1202
|
+
Bn as collapseListsPlugin,
|
|
1203
|
+
si as commonmarkToolbarConfig,
|
|
1204
|
+
Ka as configure,
|
|
1205
|
+
ni as configureAdvancedMarkdownRenderers,
|
|
1206
|
+
Xe as createBasicEditorCommands,
|
|
1207
|
+
et as createBasicMarkupCommands,
|
|
1208
|
+
Tn as createFakeParagraph,
|
|
1209
|
+
En as createGapCursorPlugin,
|
|
1210
|
+
Hn as createHistoryActions,
|
|
1211
|
+
$n as createListActions,
|
|
1212
|
+
Vn as createListsInputRules,
|
|
1213
|
+
Sn as createListsKeymap,
|
|
1214
|
+
tt as createMarkdownEditor,
|
|
1215
|
+
An as createTable,
|
|
1216
|
+
ri as createToolbarConfig,
|
|
1217
|
+
di as createToolbarGroup,
|
|
1218
|
+
ui as createToolbarItem,
|
|
1219
|
+
Pn as createVueContextPanelPlugin,
|
|
1220
|
+
zn as createVueNodeView,
|
|
1221
|
+
Fn as createVueWidgetDecoration,
|
|
1222
|
+
xl as defaultMarkdownSchema,
|
|
1223
|
+
Nn as defaultMermaidSource,
|
|
1224
|
+
mi as defaultToolbarConfig,
|
|
1225
|
+
Rn as defaultYfmHtml,
|
|
1226
|
+
Dn as deleteTable,
|
|
1227
|
+
In as deleteTableColumn,
|
|
1228
|
+
qn as deleteTableRow,
|
|
1229
|
+
On as findFakeParaPosClosestToPos,
|
|
1230
|
+
jn as findFakeParaPosForCodeBlock,
|
|
1231
|
+
Un as findFakeParaPosForNodeSelection,
|
|
1232
|
+
Wn as findFakeParaPosForTextSelection,
|
|
1233
|
+
ci as fullToolbarConfig,
|
|
1234
|
+
Qn as gapCursorBackspace,
|
|
1235
|
+
oi as getAdvancedMarkdownRenderers,
|
|
1236
|
+
Ll as getBasicWysiwygSelectionState,
|
|
1237
|
+
Gn as getBlockquoteType,
|
|
1238
|
+
Yn as getBoldType,
|
|
1239
|
+
Zn as getCodeBlockType,
|
|
1240
|
+
Kn as getCodeType,
|
|
1241
|
+
Xa as getConfig,
|
|
1242
|
+
Xn as getCurrentLink,
|
|
1243
|
+
Jn as getDeflistTypes,
|
|
1244
|
+
_n as getHeadingType,
|
|
1245
|
+
eo as getHorizontalRuleType,
|
|
1246
|
+
to as getImageType,
|
|
1247
|
+
ao as getItalicType,
|
|
1248
|
+
lo as getLinkType,
|
|
1249
|
+
no as getMarkType,
|
|
1250
|
+
Ke as getMarkdownEditorMessages,
|
|
1251
|
+
oo as getQuoteLinkType,
|
|
1252
|
+
io as getStrikeType,
|
|
1253
|
+
gt as getToolbarConfig,
|
|
1254
|
+
so as getUnderlineType,
|
|
1255
|
+
ro as goToTableCell,
|
|
1256
|
+
_i as headingLevelAttr,
|
|
1257
|
+
es as headingNodeName,
|
|
1258
|
+
uo as hierarchicalSelectAll,
|
|
1259
|
+
ts as horizontalRuleMarkupAttr,
|
|
1260
|
+
as as horizontalRuleNodeName,
|
|
1261
|
+
mo as imageNodeName,
|
|
1262
|
+
co as imageObjectFitValues,
|
|
1263
|
+
vo as insertMermaid,
|
|
1264
|
+
go as insertTable,
|
|
1265
|
+
fo as insertYfmHtmlBlock,
|
|
1266
|
+
bo as isBreakNode,
|
|
1267
|
+
ko as isGapCursorSelection,
|
|
1268
|
+
wo as isInsideCode,
|
|
1269
|
+
G as isToolbarItemActive,
|
|
1270
|
+
bt as isToolbarItemAvailable,
|
|
1271
|
+
S as isToolbarItemEnabled,
|
|
1272
|
+
ls as italicMarkName,
|
|
1273
|
+
ho as joinPrevList,
|
|
1274
|
+
yo as liftEmptyListItem,
|
|
1275
|
+
Mo as liftFromQuote,
|
|
1276
|
+
ns as linkMarkName,
|
|
1277
|
+
Co as markMarkName,
|
|
1278
|
+
al as markdownEditorMessages,
|
|
1279
|
+
vi as markdownEditorToolbarItemIds,
|
|
1280
|
+
po as mergeListsPlugin,
|
|
1281
|
+
xo as mermaidActionName,
|
|
1282
|
+
Lo as mermaidNodeName,
|
|
1283
|
+
gi as minimalToolbarConfig,
|
|
1284
|
+
_e as mountBasicMarkupEditor,
|
|
1285
|
+
Je as mountBasicWysiwygEditor,
|
|
1286
|
+
Bo as moveToNextTableRow,
|
|
1287
|
+
To as newlineInCode,
|
|
1288
|
+
ft as normalizeToolbarItem,
|
|
1289
|
+
Eo as quoteLinkActionName,
|
|
1290
|
+
Ho as quoteLinkNodeName,
|
|
1291
|
+
$o as removeCurrentLink,
|
|
1292
|
+
Vo as removeLink,
|
|
1293
|
+
Bl as renderMarkdownPreview,
|
|
1294
|
+
So as resetCodeBlock,
|
|
1295
|
+
Ao as resetHeading,
|
|
1296
|
+
Po as setCodeBlock,
|
|
1297
|
+
zo as setCodeBlockLanguage,
|
|
1298
|
+
Fo as setImageDisplay,
|
|
1299
|
+
No as setLink,
|
|
1300
|
+
Ro as setTableColumnAlignment,
|
|
1301
|
+
Do as sinkOnlySelectedListItem,
|
|
1302
|
+
Io as splitDeflist,
|
|
1303
|
+
qo as strikeMarkName,
|
|
1304
|
+
Ja as subscribeConfigure,
|
|
1305
|
+
Oo as toHeading,
|
|
1306
|
+
jo as toList,
|
|
1307
|
+
Uo as toggleBold,
|
|
1308
|
+
Wo as toggleCode,
|
|
1309
|
+
Qo as toggleHighlight,
|
|
1310
|
+
Go as toggleItalic,
|
|
1311
|
+
Yo as toggleLink,
|
|
1312
|
+
Zo as toggleQuote,
|
|
1313
|
+
Ko as toggleQuoteLink,
|
|
1314
|
+
Xo as toggleStrike,
|
|
1315
|
+
Jo as toggleUnderline,
|
|
1316
|
+
_o as underlineMarkName,
|
|
1317
|
+
Qa as useMarkdownEditor,
|
|
1318
|
+
ei as wrapToDeflist,
|
|
1319
|
+
ti as yfmHtmlBlockActionName,
|
|
1320
|
+
ai as yfmHtmlBlockNodeName,
|
|
1321
|
+
fi as zeroToolbarConfig
|
|
1293
1322
|
};
|