hexagon-editor 0.1.7 → 0.1.9
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 +381 -52
- package/dist/MarkdownEditor.vue.d.ts +28 -4
- package/dist/MarkdownEditor.vue.d.ts.map +1 -1
- package/dist/{MarkdownEditorLinkForm-B9dEX3WT.js → MarkdownEditorLinkForm-nx1gDLpK.js} +17 -6
- package/dist/background-color-DJ1tENTK.js +80 -0
- package/dist/{base-BPdMUtQo.js → base-BOV5nzwj.js} +1005 -728
- package/dist/classname.d.ts.map +1 -1
- package/dist/{index-D_CMntQU.js → color-DYgeN76h.js} +530 -459
- package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts +9 -1
- package/dist/components/MarkdownEditorFloatingMenus.vue.d.ts.map +1 -1
- package/dist/components/MarkdownEditorImageActions.vue.d.ts.map +1 -1
- package/dist/components/MarkdownEditorToolbar.vue.d.ts +8 -2
- package/dist/components/MarkdownEditorToolbar.vue.d.ts.map +1 -1
- package/dist/components/MarkdownEditorToolbarIcon.vue.d.ts.map +1 -1
- package/dist/composables/useFloatingPanel.d.ts.map +1 -1
- package/dist/composables/useMarkdownEditorValue.d.ts.map +1 -1
- package/dist/configure.d.ts.map +1 -1
- package/dist/core/actions.d.ts.map +1 -1
- package/dist/core/basic-editor-atomic-source.d.ts.map +1 -1
- package/dist/core/basic-editor-command-helpers.d.ts +4 -1
- package/dist/core/basic-editor-command-helpers.d.ts.map +1 -1
- package/dist/core/basic-editor-markdown.d.ts.map +1 -1
- package/dist/core/basic-editor-renderers.d.ts.map +1 -1
- package/dist/core/basic-editor-runtime-plugins.d.ts.map +1 -1
- package/dist/core/basic-editor-selection.d.ts.map +1 -1
- package/dist/core/basic-editor-table-controls.d.ts.map +1 -1
- package/dist/core/basic-editor-types.d.ts +4 -1
- package/dist/core/basic-editor-types.d.ts.map +1 -1
- package/dist/core/basic-editor.d.ts.map +1 -1
- package/dist/core/content-handler.d.ts.map +1 -1
- package/dist/core/editor-instance.d.ts.map +1 -1
- package/dist/core/events.d.ts.map +1 -1
- package/dist/core/extension-builder.d.ts +1 -1
- package/dist/core/extension-builder.d.ts.map +1 -1
- package/dist/core/extensions-manager.d.ts.map +1 -1
- package/dist/core/lists.d.ts.map +1 -1
- package/dist/core/logger.d.ts.map +1 -1
- package/dist/core/markdown-parser.d.ts.map +1 -1
- package/dist/core/markdown.d.ts.map +1 -1
- package/dist/core/markup-commands.d.ts.map +1 -1
- package/dist/core/markup-editor.d.ts.map +1 -1
- package/dist/core/registries.d.ts.map +1 -1
- package/dist/core/schema-dynamic-modifier.d.ts.map +1 -1
- package/dist/core/vue-renderer.d.ts.map +1 -1
- package/dist/core.js +2 -2
- package/dist/directives.d.ts.map +1 -1
- package/dist/extensions/additional/folding-heading.d.ts.map +1 -1
- package/dist/extensions/additional/math.d.ts.map +1 -1
- package/dist/extensions/additional/mermaid.d.ts.map +1 -1
- package/dist/extensions/additional/quote-link.d.ts.map +1 -1
- package/dist/extensions/additional/yfm-html-block.d.ts.map +1 -1
- package/dist/extensions/base.d.ts.map +1 -1
- package/dist/extensions/behavior/clicks-on-edges.d.ts.map +1 -1
- package/dist/extensions/behavior/clipboard.d.ts.map +1 -1
- package/dist/extensions/behavior/cursor.d.ts.map +1 -1
- package/dist/extensions/behavior/editor-mode-keymap.d.ts.map +1 -1
- package/dist/extensions/behavior/history.d.ts.map +1 -1
- package/dist/extensions/behavior/placeholder.d.ts.map +1 -1
- package/dist/extensions/behavior/resizable.d.ts.map +1 -1
- package/dist/extensions/behavior/selection-commands.d.ts.map +1 -1
- package/dist/extensions/behavior/selection-context.d.ts.map +1 -1
- package/dist/extensions/behavior/selection.d.ts.map +1 -1
- package/dist/extensions/index.d.ts +1 -0
- package/dist/extensions/index.d.ts.map +1 -1
- package/dist/extensions/markdown/background-color.d.ts +16 -0
- package/dist/extensions/markdown/background-color.d.ts.map +1 -0
- package/dist/extensions/markdown/blockquote-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/blockquote.d.ts.map +1 -1
- package/dist/extensions/markdown/bold-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/bold.d.ts.map +1 -1
- package/dist/extensions/markdown/breaks-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/breaks.d.ts +1 -1
- package/dist/extensions/markdown/breaks.d.ts.map +1 -1
- package/dist/extensions/markdown/code-block-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/code-block.d.ts +1 -1
- package/dist/extensions/markdown/code-block.d.ts.map +1 -1
- package/dist/extensions/markdown/code-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/code.d.ts.map +1 -1
- package/dist/extensions/markdown/color.d.ts +16 -0
- package/dist/extensions/markdown/color.d.ts.map +1 -0
- package/dist/extensions/markdown/deflist-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/deflist.d.ts +1 -1
- package/dist/extensions/markdown/deflist.d.ts.map +1 -1
- package/dist/extensions/markdown/heading-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/heading.d.ts +1 -1
- package/dist/extensions/markdown/heading.d.ts.map +1 -1
- package/dist/extensions/markdown/horizontal-rule-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/horizontal-rule.d.ts.map +1 -1
- package/dist/extensions/markdown/html.d.ts.map +1 -1
- package/dist/extensions/markdown/image.d.ts +1 -1
- package/dist/extensions/markdown/image.d.ts.map +1 -1
- package/dist/extensions/markdown/italic-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/italic.d.ts +1 -1
- package/dist/extensions/markdown/italic.d.ts.map +1 -1
- package/dist/extensions/markdown/link-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/link.d.ts +1 -1
- package/dist/extensions/markdown/link.d.ts.map +1 -1
- package/dist/extensions/markdown/list-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/lists.d.ts.map +1 -1
- package/dist/extensions/markdown/mark.d.ts.map +1 -1
- package/dist/extensions/markdown/strike.d.ts.map +1 -1
- package/dist/extensions/markdown/subscript.d.ts.map +1 -1
- package/dist/extensions/markdown/table-actions.d.ts.map +1 -1
- package/dist/extensions/markdown/table-specs.d.ts.map +1 -1
- package/dist/extensions/markdown/table.d.ts +2 -2
- package/dist/extensions/markdown/table.d.ts.map +1 -1
- package/dist/extensions/markdown/underline.d.ts.map +1 -1
- package/dist/extensions.js +121 -111
- package/dist/forms/MarkdownEditorForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorImageForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorLinkForm.vue.d.ts.map +1 -1
- package/dist/forms/MarkdownEditorTextInput.vue.d.ts.map +1 -1
- package/dist/forms/index.d.ts.map +1 -1
- package/dist/forms.js +1 -1
- package/dist/{full-Da8esvj2.js → full-s-sYdwp2.js} +1 -1
- package/dist/{full-specs-hXKoMF-0.js → full-specs-Cm3QffD5.js} +1 -1
- package/dist/{heading-specs-D7Bj4aIM.js → heading-specs-Dnjn5FYs.js} +136 -51
- package/dist/i18n/index.d.ts +17 -0
- package/dist/i18n/index.d.ts.map +1 -1
- package/dist/i18n.js +39 -5
- package/dist/index.css +1 -1
- package/dist/index.d.ts +8 -8
- package/dist/index.d.ts.map +1 -1
- package/dist/index.js +960 -802
- package/dist/{markup-commands-BYsx8ADT.js → markup-commands-DW5NFQUO.js} +4082 -4411
- package/dist/presets/commonmark-specs.d.ts.map +1 -1
- package/dist/presets/commonmark.d.ts.map +1 -1
- package/dist/presets/default.d.ts.map +1 -1
- package/dist/presets/full-specs.d.ts.map +1 -1
- package/dist/presets/full.d.ts.map +1 -1
- package/dist/presets/index.d.ts.map +1 -1
- package/dist/presets/zero.d.ts.map +1 -1
- package/dist/presets.js +2 -2
- package/dist/public-types.d.ts.map +1 -1
- package/dist/renderer/MarkdownRenderer.vue.d.ts.map +1 -1
- package/dist/renderer/index.d.ts.map +1 -1
- package/dist/renderer/markdown.d.ts.map +1 -1
- package/dist/renderer.css +1 -1
- package/dist/renderer.js +672 -568
- package/dist/specs.js +53 -14
- package/dist/toolbar/config.d.ts +2 -2
- package/dist/toolbar/config.d.ts.map +1 -1
- package/dist/toolbar/index.d.ts.map +1 -1
- package/dist/toolbar.js +21 -22
- package/dist/use-markdown-editor.d.ts.map +1 -1
- package/dist/version.d.ts +1 -1
- package/dist/version.d.ts.map +1 -1
- package/package.json +1 -2
- package/dist/core/basic-editor-table-popover.d.ts +0 -5
- package/dist/core/basic-editor-table-popover.d.ts.map +0 -1
package/dist/index.js
CHANGED
|
@@ -1,61 +1,83 @@
|
|
|
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 { defineComponent as
|
|
10
|
-
import {
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import "./
|
|
16
|
-
import {
|
|
17
|
-
import { C as
|
|
18
|
-
import {
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
`,
|
|
22
|
-
`,
|
|
23
|
-
`,
|
|
24
|
-
`,
|
|
25
|
-
`,
|
|
26
|
-
`,
|
|
27
|
-
`,
|
|
28
|
-
`,
|
|
29
|
-
`,
|
|
30
|
-
`,
|
|
31
|
-
`,
|
|
1
|
+
import { Lang as vl, configure as bl, getConfig as fl, subscribeConfigure as kl } from "./configure.js";
|
|
2
|
+
import { cn as hl } from "./classname.js";
|
|
3
|
+
import { getMarkdownEditorMessages as lt } from "./i18n.js";
|
|
4
|
+
import { markdownEditorMessages as Cl } from "./i18n.js";
|
|
5
|
+
import { n as ot, v as ke, t as nt, r as it, o as st, p as rt } from "./markup-commands-DW5NFQUO.js";
|
|
6
|
+
import { A as pl, E as xl, a as Ll, b as Bl, c as Tl, L as El, L as $l, M as Hl, e as Vl, f as Sl, P as Al, g as Pl, S as zl, h as Fl, i as Nl, j as Dl, k as Rl, W as Il, l as ql, m as Ol, s as jl, q as Ul, u as Wl } from "./markup-commands-DW5NFQUO.js";
|
|
7
|
+
import { c4 as dt, c5 as ut, c6 as mt, c7 as ct, c8 as gt } from "./base-BOV5nzwj.js";
|
|
8
|
+
import { B as Gl, g as Kl, h as Yl, i as Zl, k as Xl, n as Jl, C as _l, o as eo, p as to, q as ao, r as lo, D as oo, E as no, G as io, H as so, u as ro, v as uo, w as mo, x as co, y as go, z as vo, I as bo, A as fo, J as ko, L as wo, K as ho, M as yo, P as Co, Q as Mo, R as po, S as xo, T as Lo, U as Bo, V as To, X as Eo, Y as $o, c9 as Ho, Z as Vo, _ as So, $ as Ao, a0 as Po, a1 as zo, a2 as Fo, a3 as No, a4 as Do, a5 as Ro, a6 as Io, ca as qo, cb as Oo, cc as jo, cd as Uo, c as Wo, ce as Qo, ac as Go, ad as Ko, af as Yo, a as Zo, b as Xo, ak as Jo, d as _o, e as en, f as tn, an, ao as ln, ap as on, aq as nn, ar as sn, cf as rn, cg as dn, ch as un, ci as mn, cj as cn, as as gn, at as vn, au as bn, av as fn, aw as kn, ax as wn, ay as hn, az as yn, aA as Cn, aB as Mn, aC as pn, aD as xn, aF as Ln, aG as Bn, aI as Tn, aJ as En, ck as $n, aN as Hn, aP as Vn, aT as Sn, aU as An, aV as Pn, aW as zn, aX as Fn, aY as Nn, j as Dn, l as Rn, a_ as In, a$ as qn, m as On, b7 as jn, b8 as Un, bd as Wn, be as Qn, bh as Gn, bi as Kn, bl as Yn, bn as Zn, bo as Xn, bp as Jn, bz as _n, bA as ei, bB as ti, bC as ai, bD as li, s as oi, bE as ni, bF as ii, bL as si, t as ri, bN as di, bO as ui, bQ as mi, bR as ci, bS as gi, bT as vi, bU as bi, bV as fi, bX as ki, bY as wi, b$ as hi, c0 as yi, c1 as Ci } from "./base-BOV5nzwj.js";
|
|
9
|
+
import { defineComponent as ne, openBlock as i, createElementBlock as m, ref as y, Fragment as z, renderList as J, unref as d, withModifiers as h, createElementVNode as g, normalizeStyle as $e, toDisplayString as H, createCommentVNode as $, createVNode as C, createStaticVNode as vt, renderSlot as we, onBeforeUnmount as he, nextTick as oe, getCurrentInstance as Se, computed as He, watch as ae, onMounted as bt, createBlock as le, withCtx as ft, normalizeProps as kt, guardReactiveProps as wt, Teleport as ht, normalizeClass as yt, readonly as ue } from "vue";
|
|
10
|
+
import { d as Ct, t as Mt, e as pt } from "./background-color-DJ1tENTK.js";
|
|
11
|
+
import { t as xt, a as Lt, b as Bt } from "./color-DYgeN76h.js";
|
|
12
|
+
import { _ as ie } from "./_plugin-vue_export-helper-CHgC5LLL.js";
|
|
13
|
+
import { getToolbarConfig as Tt, isToolbarItemEnabled as N, isToolbarItemActive as X, normalizeToolbarItem as Et, isToolbarItemAvailable as $t } from "./toolbar.js";
|
|
14
|
+
import { commonmarkToolbarConfig as pi, createToolbarConfig as xi, createToolbarGroup as Li, createToolbarItem as Bi, defaultToolbarConfig as Ti, fullToolbarConfig as Ei, markdownEditorToolbarItemIds as $i, minimalToolbarConfig as Hi, zeroToolbarConfig as Vi } from "./toolbar.js";
|
|
15
|
+
import { a as Ht, M as Vt } from "./MarkdownEditorLinkForm-nx1gDLpK.js";
|
|
16
|
+
import { _ as Ai, b as Pi } from "./MarkdownEditorLinkForm-nx1gDLpK.js";
|
|
17
|
+
import { C as Fi, D as Ni, F as Di, Z as Ri } from "./full-s-sYdwp2.js";
|
|
18
|
+
import { C as qi, F as Oi } from "./full-specs-Cm3QffD5.js";
|
|
19
|
+
import { B as Ui, a as Wi, b as Qi, c as Gi, d as Ki, C as Yi, e as Zi, f as Xi, D as Ji, g as _i, h as es, H as ts, i as as, I as ls, j as os, L as ns, k as is, T as ss, l as rs, m as ds, n as us, o as ms, r as cs, v as gs, y as vs, M as bs, O as fs, R as ks, S as ws, W as hs, Z as ys } from "./heading-specs-Dnjn5FYs.js";
|
|
20
|
+
const 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="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
|
+
`, At = `<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
|
+
`, 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="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
|
+
`, 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="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
|
+
`, 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="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
|
+
`, Nt = `<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
|
+
`, Dt = `<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
|
+
`, Rt = `<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="16" height="16" class="g-icon" fill="currentColor" stroke="none" aria-hidden="true"><svg xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 16 16"><path fill="currentColor" fill-rule="evenodd" d="M7.199 2H8.8a.2.2 0 0 1 .2.2c0 1.808 1.958 2.939 3.524 2.034a.2.2 0 0 1 .271.073l.802 1.388a.2.2 0 0 1-.073.272c-1.566.904-1.566 3.164 0 4.069a.2.2 0 0 1 .073.271l-.802 1.388a.2.2 0 0 1-.271.073C10.958 10.863 9 11.993 9 13.8a.2.2 0 0 1-.199.2H7.2a.2.2 0 0 1-.2-.2c0-1.808-1.958-2.938-3.524-2.034a.2.2 0 0 1-.272-.073l-.8-1.388a.2.2 0 0 1 .072-.271c1.566-.905 1.566-3.165 0-4.07a.2.2 0 0 1-.073-.27l.801-1.389a.2.2 0 0 1 .272-.072C5.042 5.138 7 4.007 7 2.199c0-.11.089-.199.199-.199M5.5 2.2c0-.94.76-1.7 1.699-1.7H8.8c.94 0 1.7.76 1.7 1.7a.85.85 0 0 0 1.274.735 1.7 1.7 0 0 1 2.32.622l.802 1.388c.469.813.19 1.851-.622 2.32a.85.85 0 0 0 0 1.472 1.7 1.7 0 0 1 .622 2.32l-.802 1.388a1.7 1.7 0 0 1-2.32.622.85.85 0 0 0-1.274.735c0 .939-.76 1.7-1.699 1.7H7.2a1.7 1.7 0 0 1-1.699-1.7.85.85 0 0 0-1.274-.735 1.7 1.7 0 0 1-2.32-.622l-.802-1.388a1.7 1.7 0 0 1 .622-2.32.85.85 0 0 0 0-1.471 1.7 1.7 0 0 1-.622-2.32l.801-1.389a1.7 1.7 0 0 1 2.32-.622A.85.85 0 0 0 5.5 2.2m4 5.8a1.5 1.5 0 1 1-3 0 1.5 1.5 0 1 1 3 0M11 8a3 3 0 1 1-6 0 3 3 0 0 1 6 0" clip-rule="evenodd"></path></svg></svg>
|
|
28
|
+
`, It = `<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>
|
|
29
|
+
`, qt = `<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>
|
|
30
|
+
`, Ot = `<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>
|
|
31
|
+
`, jt = `<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>
|
|
32
|
+
`, Ut = `<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">
|
|
32
33
|
<rect x="1.5" y="1.5" width="4" height="3" rx=".75"/>
|
|
33
34
|
<rect x="10.5" y="1.5" width="4" height="3" rx=".75"/>
|
|
34
35
|
<rect x="6" y="11.5" width="4" height="3" rx=".75"/>
|
|
35
36
|
<path d="M3.5 4.5v2h4.5v5M12.5 4.5v2H8"/>
|
|
36
37
|
</svg>
|
|
37
|
-
`,
|
|
38
|
-
`,
|
|
39
|
-
`,
|
|
40
|
-
`,
|
|
41
|
-
`,
|
|
42
|
-
`,
|
|
38
|
+
`, Wt = `<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>
|
|
39
|
+
`, Qt = `<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>
|
|
40
|
+
`, Gt = `<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>
|
|
41
|
+
`, Kt = `<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>
|
|
42
|
+
`, 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="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>
|
|
43
|
+
`, Zt = ["innerHTML"], Xt = /* @__PURE__ */ ne({
|
|
43
44
|
__name: "MarkdownEditorToolbarIcon",
|
|
44
45
|
props: {
|
|
45
46
|
name: {}
|
|
46
47
|
},
|
|
47
48
|
setup(e) {
|
|
48
|
-
const
|
|
49
|
-
|
|
49
|
+
const k = {
|
|
50
|
+
arrowLeft: St,
|
|
51
|
+
arrowRight: At,
|
|
52
|
+
bold: Pt,
|
|
53
|
+
bulletList: zt,
|
|
54
|
+
chevronDown: Ft,
|
|
55
|
+
code: Nt,
|
|
56
|
+
function: Dt,
|
|
57
|
+
gear: Rt,
|
|
58
|
+
horizontalRule: It,
|
|
59
|
+
image: qt,
|
|
60
|
+
italic: Ot,
|
|
61
|
+
link: jt,
|
|
62
|
+
mermaid: Ut,
|
|
63
|
+
orderedList: Wt,
|
|
64
|
+
quote: Qt,
|
|
65
|
+
strike: Gt,
|
|
66
|
+
table: Kt,
|
|
67
|
+
underline: Yt
|
|
68
|
+
}, x = e;
|
|
69
|
+
return (c, w) => (i(), m("span", {
|
|
50
70
|
class: "markdown-editor__toolbar-icon",
|
|
51
71
|
"aria-hidden": "true",
|
|
52
|
-
innerHTML:
|
|
53
|
-
}, null, 8,
|
|
72
|
+
innerHTML: k[x.name]
|
|
73
|
+
}, null, 8, Zt));
|
|
54
74
|
}
|
|
55
|
-
}), p = /* @__PURE__ */
|
|
75
|
+
}), p = /* @__PURE__ */ ie(Xt, [["__scopeId", "data-v-ded8a15f"]]), Jt = ["data-theme", "aria-label"], _t = ["onClick"], ea = ["data-theme", "aria-label"], ta = ["onClick"], aa = ["data-theme", "aria-label"], la = ["aria-checked"], oa = ["aria-checked"], na = ["data-theme", "aria-label"], ia = ["aria-checked", "onClick"], sa = { class: "markdown-editor__floating-menu-icon" }, ra = ["data-theme", "aria-label"], da = ["data-theme", "aria-label"], ua = ["aria-checked"], ma = ["aria-checked"], ca = ["disabled"], ga = ["disabled"], va = ["data-theme", "aria-label"], ba = ["aria-checked", "onClick"], fa = /* @__PURE__ */ ne({
|
|
56
76
|
__name: "MarkdownEditorFloatingMenus",
|
|
57
77
|
props: {
|
|
58
78
|
codeVisible: { type: Boolean },
|
|
79
|
+
backgroundColorVisible: { type: Boolean },
|
|
80
|
+
colorVisible: { type: Boolean },
|
|
59
81
|
formulaVisible: { type: Boolean },
|
|
60
82
|
headingVisible: { type: Boolean },
|
|
61
83
|
listVisible: { type: Boolean },
|
|
@@ -66,18 +88,76 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
66
88
|
theme: {},
|
|
67
89
|
translate: { type: Function }
|
|
68
90
|
},
|
|
69
|
-
emits: ["code-block", "inline-code", "inline-formula", "math-block", "select-mode", "select-text-style", "bullet-list", "ordered-list", "indent-list", "outdent-list"],
|
|
70
|
-
setup(e, { expose:
|
|
71
|
-
const
|
|
72
|
-
return
|
|
73
|
-
getElement(
|
|
74
|
-
return {
|
|
91
|
+
emits: ["code-block", "select-background-color", "select-color", "inline-code", "inline-formula", "math-block", "select-mode", "select-text-style", "bullet-list", "ordered-list", "indent-list", "outdent-list"],
|
|
92
|
+
setup(e, { expose: k, emit: x }) {
|
|
93
|
+
const c = x, w = y(), u = y(), r = y(), s = y(), a = y(), M = y(), l = y(), v = ["wysiwyg", "markup", "split"];
|
|
94
|
+
return k({
|
|
95
|
+
getElement(V) {
|
|
96
|
+
return {
|
|
97
|
+
"background-color": u.value,
|
|
98
|
+
code: w.value,
|
|
99
|
+
color: r.value,
|
|
100
|
+
formula: s.value,
|
|
101
|
+
heading: a.value,
|
|
102
|
+
list: M.value,
|
|
103
|
+
mode: l.value
|
|
104
|
+
}[V];
|
|
75
105
|
}
|
|
76
|
-
}), (
|
|
77
|
-
e.
|
|
106
|
+
}), (V, o) => (i(), m(z, null, [
|
|
107
|
+
e.backgroundColorVisible ? (i(), m("div", {
|
|
78
108
|
key: 0,
|
|
109
|
+
ref_key: "backgroundColor",
|
|
110
|
+
ref: u,
|
|
111
|
+
class: "markdown-editor__floating-menu",
|
|
112
|
+
"data-theme": e.theme,
|
|
113
|
+
role: "menu",
|
|
114
|
+
"aria-label": e.translate("backgroundColor")
|
|
115
|
+
}, [
|
|
116
|
+
(i(!0), m(z, null, J(d(Ct), (b) => (i(), m("button", {
|
|
117
|
+
key: b,
|
|
118
|
+
role: "menuitemradio",
|
|
119
|
+
type: "button",
|
|
120
|
+
onMousedown: o[0] || (o[0] = h(() => {
|
|
121
|
+
}, ["prevent"])),
|
|
122
|
+
onClick: (S) => c("select-background-color", b)
|
|
123
|
+
}, [
|
|
124
|
+
g("span", {
|
|
125
|
+
class: "markdown-editor__floating-menu-icon markdown-editor__background-color-icon",
|
|
126
|
+
style: $e(
|
|
127
|
+
b === "default" ? void 0 : { backgroundColor: `var(${d(Mt)[b]})` }
|
|
128
|
+
)
|
|
129
|
+
}, " A ", 4),
|
|
130
|
+
g("span", null, H(e.translate(d(pt)[b])), 1)
|
|
131
|
+
], 40, _t))), 128))
|
|
132
|
+
], 8, Jt)) : $("", !0),
|
|
133
|
+
e.colorVisible ? (i(), m("div", {
|
|
134
|
+
key: 1,
|
|
135
|
+
ref_key: "color",
|
|
136
|
+
ref: r,
|
|
137
|
+
class: "markdown-editor__floating-menu",
|
|
138
|
+
"data-theme": e.theme,
|
|
139
|
+
role: "menu",
|
|
140
|
+
"aria-label": e.translate("color")
|
|
141
|
+
}, [
|
|
142
|
+
(i(!0), m(z, null, J(d(xt), (b) => (i(), m("button", {
|
|
143
|
+
key: b,
|
|
144
|
+
role: "menuitemradio",
|
|
145
|
+
type: "button",
|
|
146
|
+
onMousedown: o[1] || (o[1] = h(() => {
|
|
147
|
+
}, ["prevent"])),
|
|
148
|
+
onClick: (S) => c("select-color", b)
|
|
149
|
+
}, [
|
|
150
|
+
g("span", {
|
|
151
|
+
class: "markdown-editor__floating-menu-icon",
|
|
152
|
+
style: $e(b === "default" ? void 0 : { color: `var(${d(Lt)[b]})` })
|
|
153
|
+
}, " A ", 4),
|
|
154
|
+
g("span", null, H(e.translate(d(Bt)[b])), 1)
|
|
155
|
+
], 40, ta))), 128))
|
|
156
|
+
], 8, ea)) : $("", !0),
|
|
157
|
+
e.codeVisible ? (i(), m("div", {
|
|
158
|
+
key: 2,
|
|
79
159
|
ref_key: "code",
|
|
80
|
-
ref:
|
|
160
|
+
ref: w,
|
|
81
161
|
class: "markdown-editor__floating-menu",
|
|
82
162
|
"data-theme": e.theme,
|
|
83
163
|
role: "menu",
|
|
@@ -87,49 +167,49 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
87
167
|
"aria-checked": e.state.code,
|
|
88
168
|
role: "menuitemradio",
|
|
89
169
|
type: "button",
|
|
90
|
-
onMousedown:
|
|
170
|
+
onMousedown: o[2] || (o[2] = h(() => {
|
|
91
171
|
}, ["prevent"])),
|
|
92
|
-
onClick:
|
|
172
|
+
onClick: o[3] || (o[3] = (b) => c("inline-code"))
|
|
93
173
|
}, [
|
|
94
|
-
|
|
174
|
+
C(p, { name: "code" }),
|
|
95
175
|
g("span", null, H(e.translate("code")), 1)
|
|
96
|
-
], 40,
|
|
176
|
+
], 40, la),
|
|
97
177
|
g("button", {
|
|
98
178
|
"aria-checked": e.state.codeBlock,
|
|
99
179
|
role: "menuitemradio",
|
|
100
180
|
type: "button",
|
|
101
|
-
onMousedown:
|
|
181
|
+
onMousedown: o[4] || (o[4] = h(() => {
|
|
102
182
|
}, ["prevent"])),
|
|
103
|
-
onClick:
|
|
183
|
+
onClick: o[5] || (o[5] = (b) => c("code-block"))
|
|
104
184
|
}, [
|
|
105
|
-
|
|
185
|
+
o[18] || (o[18] = g("span", { class: "markdown-editor__floating-menu-icon" }, "{ }", -1)),
|
|
106
186
|
g("span", null, H(e.translate("codeBlock")), 1)
|
|
107
|
-
], 40,
|
|
108
|
-
], 8,
|
|
109
|
-
e.headingVisible ? (
|
|
110
|
-
key:
|
|
187
|
+
], 40, oa)
|
|
188
|
+
], 8, aa)) : $("", !0),
|
|
189
|
+
e.headingVisible ? (i(), m("div", {
|
|
190
|
+
key: 3,
|
|
111
191
|
ref_key: "heading",
|
|
112
|
-
ref:
|
|
192
|
+
ref: a,
|
|
113
193
|
class: "markdown-editor__floating-menu",
|
|
114
194
|
"data-theme": e.theme,
|
|
115
195
|
role: "menu",
|
|
116
196
|
"aria-label": e.translate("heading")
|
|
117
197
|
}, [
|
|
118
|
-
(
|
|
119
|
-
key:
|
|
120
|
-
"aria-checked": e.textStyle ===
|
|
198
|
+
(i(), m(z, null, J(["paragraph", "1", "2", "3", "4", "5", "6"], (b) => g("button", {
|
|
199
|
+
key: b,
|
|
200
|
+
"aria-checked": e.textStyle === b,
|
|
121
201
|
role: "menuitemradio",
|
|
122
202
|
type: "button",
|
|
123
|
-
onClick: (
|
|
203
|
+
onClick: (S) => c("select-text-style", b)
|
|
124
204
|
}, [
|
|
125
|
-
g("span",
|
|
126
|
-
g("span", null, H(
|
|
127
|
-
], 8,
|
|
128
|
-
], 8,
|
|
129
|
-
e.formulaVisible ? (
|
|
130
|
-
key:
|
|
205
|
+
g("span", sa, H(b === "paragraph" ? "T" : `H${b}`), 1),
|
|
206
|
+
g("span", null, H(b === "paragraph" ? e.translate("paragraph") : `${e.translate("heading")} ${b}`), 1)
|
|
207
|
+
], 8, ia)), 64))
|
|
208
|
+
], 8, na)) : $("", !0),
|
|
209
|
+
e.formulaVisible ? (i(), m("div", {
|
|
210
|
+
key: 4,
|
|
131
211
|
ref_key: "formula",
|
|
132
|
-
ref:
|
|
212
|
+
ref: s,
|
|
133
213
|
class: "markdown-editor__floating-menu",
|
|
134
214
|
"data-theme": e.theme,
|
|
135
215
|
role: "menu",
|
|
@@ -138,28 +218,28 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
138
218
|
g("button", {
|
|
139
219
|
role: "menuitem",
|
|
140
220
|
type: "button",
|
|
141
|
-
onMousedown:
|
|
221
|
+
onMousedown: o[6] || (o[6] = h(() => {
|
|
142
222
|
}, ["prevent"])),
|
|
143
|
-
onClick:
|
|
223
|
+
onClick: o[7] || (o[7] = (b) => c("inline-formula"))
|
|
144
224
|
}, [
|
|
145
|
-
|
|
225
|
+
o[19] || (o[19] = g("span", { class: "markdown-editor__floating-menu-icon" }, "ƒ", -1)),
|
|
146
226
|
g("span", null, H(e.translate("formulaInline")), 1)
|
|
147
227
|
], 32),
|
|
148
228
|
g("button", {
|
|
149
229
|
role: "menuitem",
|
|
150
230
|
type: "button",
|
|
151
|
-
onMousedown:
|
|
231
|
+
onMousedown: o[8] || (o[8] = h(() => {
|
|
152
232
|
}, ["prevent"])),
|
|
153
|
-
onClick:
|
|
233
|
+
onClick: o[9] || (o[9] = (b) => c("math-block"))
|
|
154
234
|
}, [
|
|
155
|
-
|
|
235
|
+
o[20] || (o[20] = g("span", { class: "markdown-editor__floating-menu-icon" }, "∑", -1)),
|
|
156
236
|
g("span", null, H(e.translate("formulaBlock")), 1)
|
|
157
237
|
], 32)
|
|
158
|
-
], 8,
|
|
159
|
-
e.listVisible ? (
|
|
160
|
-
key:
|
|
238
|
+
], 8, ra)) : $("", !0),
|
|
239
|
+
e.listVisible ? (i(), m("div", {
|
|
240
|
+
key: 5,
|
|
161
241
|
ref_key: "list",
|
|
162
|
-
ref:
|
|
242
|
+
ref: M,
|
|
163
243
|
class: "markdown-editor__floating-menu markdown-editor__floating-menu--list",
|
|
164
244
|
"data-theme": e.theme,
|
|
165
245
|
role: "menu",
|
|
@@ -169,71 +249,71 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
169
249
|
"aria-checked": e.state.bulletList,
|
|
170
250
|
role: "menuitemradio",
|
|
171
251
|
type: "button",
|
|
172
|
-
onMousedown:
|
|
252
|
+
onMousedown: o[10] || (o[10] = h(() => {
|
|
173
253
|
}, ["prevent"])),
|
|
174
|
-
onClick:
|
|
254
|
+
onClick: o[11] || (o[11] = (b) => c("bullet-list"))
|
|
175
255
|
}, [
|
|
176
|
-
|
|
256
|
+
C(p, { name: "bulletList" }),
|
|
177
257
|
g("span", null, H(e.translate("bulletList")), 1)
|
|
178
|
-
], 40,
|
|
258
|
+
], 40, ua),
|
|
179
259
|
g("button", {
|
|
180
260
|
"aria-checked": e.state.orderedList,
|
|
181
261
|
role: "menuitemradio",
|
|
182
262
|
type: "button",
|
|
183
|
-
onMousedown:
|
|
263
|
+
onMousedown: o[12] || (o[12] = h(() => {
|
|
184
264
|
}, ["prevent"])),
|
|
185
|
-
onClick:
|
|
265
|
+
onClick: o[13] || (o[13] = (b) => c("ordered-list"))
|
|
186
266
|
}, [
|
|
187
|
-
|
|
267
|
+
C(p, { name: "orderedList" }),
|
|
188
268
|
g("span", null, H(e.translate("orderedList")), 1)
|
|
189
|
-
], 40,
|
|
269
|
+
], 40, ma),
|
|
190
270
|
g("button", {
|
|
191
271
|
disabled: !e.state.listIndentEnabled,
|
|
192
272
|
role: "menuitem",
|
|
193
273
|
type: "button",
|
|
194
|
-
onMousedown:
|
|
274
|
+
onMousedown: o[14] || (o[14] = h(() => {
|
|
195
275
|
}, ["prevent"])),
|
|
196
|
-
onClick:
|
|
276
|
+
onClick: o[15] || (o[15] = (b) => c("indent-list"))
|
|
197
277
|
}, [
|
|
198
|
-
|
|
278
|
+
o[21] || (o[21] = g("span", { class: "markdown-editor__floating-menu-icon" }, "→", -1)),
|
|
199
279
|
g("span", null, H(e.translate("listIndent")), 1),
|
|
200
|
-
|
|
201
|
-
], 40,
|
|
280
|
+
o[22] || (o[22] = g("kbd", null, "Tab", -1))
|
|
281
|
+
], 40, ca),
|
|
202
282
|
g("button", {
|
|
203
283
|
disabled: !e.state.listOutdentEnabled,
|
|
204
284
|
role: "menuitem",
|
|
205
285
|
type: "button",
|
|
206
|
-
onMousedown:
|
|
286
|
+
onMousedown: o[16] || (o[16] = h(() => {
|
|
207
287
|
}, ["prevent"])),
|
|
208
|
-
onClick:
|
|
288
|
+
onClick: o[17] || (o[17] = (b) => c("outdent-list"))
|
|
209
289
|
}, [
|
|
210
|
-
|
|
290
|
+
o[23] || (o[23] = g("span", { class: "markdown-editor__floating-menu-icon" }, "←", -1)),
|
|
211
291
|
g("span", null, H(e.translate("listOutdent")), 1),
|
|
212
|
-
|
|
213
|
-
], 40,
|
|
214
|
-
], 8,
|
|
215
|
-
e.modeVisible ? (
|
|
216
|
-
key:
|
|
292
|
+
o[24] || (o[24] = g("kbd", null, "⇧ Tab", -1))
|
|
293
|
+
], 40, ga)
|
|
294
|
+
], 8, da)) : $("", !0),
|
|
295
|
+
e.modeVisible ? (i(), m("div", {
|
|
296
|
+
key: 6,
|
|
217
297
|
ref_key: "modeMenu",
|
|
218
|
-
ref:
|
|
298
|
+
ref: l,
|
|
219
299
|
class: "markdown-editor__floating-menu",
|
|
220
300
|
"data-theme": e.theme,
|
|
221
301
|
role: "menu",
|
|
222
302
|
"aria-label": e.translate("mode")
|
|
223
303
|
}, [
|
|
224
|
-
(
|
|
225
|
-
key:
|
|
226
|
-
"aria-checked": e.mode ===
|
|
304
|
+
(i(), m(z, null, J(v, (b) => g("button", {
|
|
305
|
+
key: b,
|
|
306
|
+
"aria-checked": e.mode === b,
|
|
227
307
|
role: "menuitemradio",
|
|
228
308
|
type: "button",
|
|
229
|
-
onClick: (
|
|
309
|
+
onClick: (S) => c("select-mode", b)
|
|
230
310
|
}, [
|
|
231
|
-
g("span", null, H(e.translate(
|
|
232
|
-
], 8,
|
|
233
|
-
], 8,
|
|
311
|
+
g("span", null, H(e.translate(b === "wysiwyg" ? "visual" : b)), 1)
|
|
312
|
+
], 8, ba)), 64))
|
|
313
|
+
], 8, va)) : $("", !0)
|
|
234
314
|
], 64));
|
|
235
315
|
}
|
|
236
|
-
}),
|
|
316
|
+
}), ka = /* @__PURE__ */ ie(fa, [["__scopeId", "data-v-84979053"]]), wa = ["data-theme", "aria-label"], ha = ["aria-label", "title"], ya = ["value", "aria-label"], Ca = /* @__PURE__ */ ne({
|
|
237
317
|
__name: "MarkdownEditorImageActions",
|
|
238
318
|
props: {
|
|
239
319
|
objectFit: {},
|
|
@@ -241,11 +321,11 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
241
321
|
translate: { type: Function }
|
|
242
322
|
},
|
|
243
323
|
emits: ["full-width", "object-fit"],
|
|
244
|
-
setup(e, { expose:
|
|
245
|
-
const
|
|
246
|
-
return
|
|
324
|
+
setup(e, { expose: k, emit: x }) {
|
|
325
|
+
const c = x, w = y();
|
|
326
|
+
return k({ element: w }), (u, r) => (i(), m("div", {
|
|
247
327
|
ref_key: "element",
|
|
248
|
-
ref:
|
|
328
|
+
ref: w,
|
|
249
329
|
class: "markdown-editor__image-actions",
|
|
250
330
|
"data-theme": e.theme,
|
|
251
331
|
role: "toolbar",
|
|
@@ -255,23 +335,25 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
255
335
|
type: "button",
|
|
256
336
|
"aria-label": e.translate("imageWidthFull"),
|
|
257
337
|
title: e.translate("imageWidthFull"),
|
|
258
|
-
onMousedown:
|
|
338
|
+
onMousedown: r[0] || (r[0] = h(() => {
|
|
259
339
|
}, ["prevent"])),
|
|
260
|
-
onClick:
|
|
261
|
-
}, "↔", 40,
|
|
340
|
+
onClick: r[1] || (r[1] = (s) => c("full-width"))
|
|
341
|
+
}, " ↔ ", 40, ha),
|
|
262
342
|
g("select", {
|
|
263
343
|
value: e.objectFit ?? "contain",
|
|
264
344
|
"aria-label": e.translate("imageFit"),
|
|
265
|
-
onChange:
|
|
266
|
-
}, [...
|
|
267
|
-
|
|
268
|
-
])], 40,
|
|
269
|
-
], 8,
|
|
345
|
+
onChange: r[2] || (r[2] = (s) => c("object-fit", s.target.value))
|
|
346
|
+
}, [...r[3] || (r[3] = [
|
|
347
|
+
vt('<option value="contain" data-v-8660b8bb>Contain</option><option value="cover" data-v-8660b8bb>Cover</option><option value="fill" data-v-8660b8bb>Fill</option><option value="none" data-v-8660b8bb>None</option><option value="scale-down" data-v-8660b8bb>Scale down</option>', 5)
|
|
348
|
+
])], 40, ya)
|
|
349
|
+
], 8, wa));
|
|
270
350
|
}
|
|
271
|
-
}),
|
|
351
|
+
}), Ma = /* @__PURE__ */ ie(Ca, [["__scopeId", "data-v-8660b8bb"]]), pa = ["aria-label"], xa = { class: "markdown-editor__toolbar-buttons" }, La = ["data-toolbar-group"], Ba = ["disabled", "aria-label", "title", "onClick"], Ta = ["disabled", "aria-label", "title", "onClick"], Ea = ["aria-expanded", "aria-label", "aria-pressed", "title"], $a = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Ha = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Va = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Sa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Aa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Pa = ["aria-expanded", "aria-label", "aria-pressed", "title"], za = ["aria-expanded", "aria-label", "aria-pressed", "title"], Fa = ["disabled", "aria-label", "aria-pressed", "title", "onClick"], Na = ["aria-label", "aria-pressed", "title"], Da = ["aria-expanded", "aria-pressed", "aria-label", "title"], Ra = ["aria-expanded", "aria-label", "title"], Ia = ["aria-expanded", "aria-label", "title"], qa = ["aria-expanded", "aria-label", "title"], Oa = ["aria-expanded", "aria-label", "aria-pressed", "title"], ja = ["aria-label", "aria-pressed", "title", "onClick"], Ua = ["aria-label", "title"], Wa = ["aria-label", "title"], Qa = ["aria-label", "title"], Ga = ["aria-expanded", "aria-label", "title"], Ka = /* @__PURE__ */ ne({
|
|
272
352
|
__name: "MarkdownEditorToolbar",
|
|
273
353
|
props: {
|
|
274
354
|
commands: {},
|
|
355
|
+
backgroundColorMenuVisible: { type: Boolean },
|
|
356
|
+
colorMenuVisible: { type: Boolean },
|
|
275
357
|
codeMenuVisible: { type: Boolean },
|
|
276
358
|
formulaMenuVisible: { type: Boolean },
|
|
277
359
|
headingMenuVisible: { type: Boolean },
|
|
@@ -287,64 +369,64 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
287
369
|
features: {},
|
|
288
370
|
translate: { type: Function }
|
|
289
371
|
},
|
|
290
|
-
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"],
|
|
291
|
-
setup(e, { emit:
|
|
292
|
-
const
|
|
293
|
-
function
|
|
294
|
-
return
|
|
372
|
+
emits: ["execute", "insert-html", "toggle-formula-menu", "toggle-code-menu", "toggle-background-color-menu", "toggle-color-menu", "toggle-heading-menu", "toggle-image-editor", "toggle-link-editor", "toggle-list-menu", "toggle-mode-menu"],
|
|
373
|
+
setup(e, { emit: k }) {
|
|
374
|
+
const x = e;
|
|
375
|
+
function c(s) {
|
|
376
|
+
return s.map(Et).filter((a) => $t(a, x.state));
|
|
295
377
|
}
|
|
296
|
-
function
|
|
297
|
-
|
|
298
|
-
commands:
|
|
299
|
-
execute: (
|
|
300
|
-
state:
|
|
301
|
-
}) :
|
|
378
|
+
function w(s, a) {
|
|
379
|
+
N(s, x.state) && (s.action ? s.action.run({
|
|
380
|
+
commands: x.commands,
|
|
381
|
+
execute: (M) => u("execute", s.id, M),
|
|
382
|
+
state: x.state
|
|
383
|
+
}) : u("execute", s.id, a));
|
|
302
384
|
}
|
|
303
|
-
const
|
|
304
|
-
function s
|
|
305
|
-
return
|
|
385
|
+
const u = k;
|
|
386
|
+
function r(s) {
|
|
387
|
+
return s.currentTarget;
|
|
306
388
|
}
|
|
307
|
-
return (
|
|
389
|
+
return (s, a) => (i(), m("div", {
|
|
308
390
|
class: "markdown-editor__toolbar",
|
|
309
391
|
"data-markdown-editor-toolbar": "",
|
|
310
392
|
role: "toolbar",
|
|
311
393
|
"aria-label": e.translate("toolbar")
|
|
312
394
|
}, [
|
|
313
|
-
g("div",
|
|
314
|
-
(
|
|
315
|
-
key:
|
|
395
|
+
g("div", xa, [
|
|
396
|
+
(i(!0), m(z, null, J((e.toolbarConfig ?? d(Tt)(e.toolbarPreset)).groups, (M) => (i(), m("div", {
|
|
397
|
+
key: M.id,
|
|
316
398
|
class: "markdown-editor__toolbar-group",
|
|
317
399
|
role: "group",
|
|
318
|
-
"data-toolbar-group":
|
|
400
|
+
"data-toolbar-group": M.id
|
|
319
401
|
}, [
|
|
320
|
-
(
|
|
321
|
-
key:
|
|
402
|
+
(i(!0), m(z, null, J(c(M.items), (l) => (i(), m(z, {
|
|
403
|
+
key: l.id
|
|
322
404
|
}, [
|
|
323
|
-
|
|
405
|
+
l.id === "undo" ? (i(), m("button", {
|
|
324
406
|
key: 0,
|
|
325
407
|
"data-toolbar-item": "undo",
|
|
326
408
|
type: "button",
|
|
327
|
-
disabled: !
|
|
409
|
+
disabled: !d(N)(l, e.state),
|
|
328
410
|
"aria-label": e.translate("undo"),
|
|
329
411
|
title: e.translate("undo"),
|
|
330
|
-
onMousedown: a[0] || (a[0] =
|
|
412
|
+
onMousedown: a[0] || (a[0] = h(() => {
|
|
331
413
|
}, ["prevent"])),
|
|
332
|
-
onClick: (
|
|
414
|
+
onClick: (v) => w(l, e.commands.undo)
|
|
333
415
|
}, [
|
|
334
|
-
|
|
335
|
-
], 40,
|
|
416
|
+
C(p, { name: "arrowLeft" })
|
|
417
|
+
], 40, Ba)) : l.id === "redo" ? (i(), m("button", {
|
|
336
418
|
key: 1,
|
|
337
419
|
"data-toolbar-item": "redo",
|
|
338
420
|
type: "button",
|
|
339
|
-
disabled: !
|
|
421
|
+
disabled: !d(N)(l, e.state),
|
|
340
422
|
"aria-label": e.translate("redo"),
|
|
341
423
|
title: e.translate("redo"),
|
|
342
|
-
onMousedown: a[1] || (a[1] =
|
|
424
|
+
onMousedown: a[1] || (a[1] = h(() => {
|
|
343
425
|
}, ["prevent"])),
|
|
344
|
-
onClick: (
|
|
426
|
+
onClick: (v) => w(l, e.commands.redo)
|
|
345
427
|
}, [
|
|
346
|
-
|
|
347
|
-
], 40,
|
|
428
|
+
C(p, { name: "arrowRight" })
|
|
429
|
+
], 40, Ta)) : l.id === "heading" ? (i(), m("button", {
|
|
348
430
|
key: 2,
|
|
349
431
|
class: "markdown-editor__toolbar-heading",
|
|
350
432
|
"data-toolbar-item": "heading",
|
|
@@ -353,76 +435,76 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
353
435
|
"aria-pressed": e.state.headingLevel !== void 0,
|
|
354
436
|
title: e.translate("heading"),
|
|
355
437
|
type: "button",
|
|
356
|
-
onMousedown: a[2] || (a[2] =
|
|
438
|
+
onMousedown: a[2] || (a[2] = h(() => {
|
|
357
439
|
}, ["prevent"])),
|
|
358
|
-
onClick: a[3] || (a[3] = (
|
|
440
|
+
onClick: a[3] || (a[3] = (v) => u("toggle-heading-menu", r(v)))
|
|
359
441
|
}, [
|
|
360
442
|
g("span", null, H(e.textStyleLabel), 1),
|
|
361
|
-
|
|
362
|
-
], 40,
|
|
443
|
+
C(p, { name: "chevronDown" })
|
|
444
|
+
], 40, Ea)) : l.id === "bold" ? (i(), m("button", {
|
|
363
445
|
key: 3,
|
|
364
446
|
"data-toolbar-item": "bold",
|
|
365
|
-
disabled: !
|
|
447
|
+
disabled: !d(N)(l, e.state),
|
|
366
448
|
"aria-label": e.translate("bold"),
|
|
367
|
-
"aria-pressed":
|
|
449
|
+
"aria-pressed": d(X)(l, e.state, e.state.bold),
|
|
368
450
|
type: "button",
|
|
369
451
|
title: e.translate("bold"),
|
|
370
|
-
onMousedown: a[4] || (a[4] =
|
|
452
|
+
onMousedown: a[4] || (a[4] = h(() => {
|
|
371
453
|
}, ["prevent"])),
|
|
372
|
-
onClick: (
|
|
454
|
+
onClick: (v) => w(l, e.commands.bold)
|
|
373
455
|
}, [
|
|
374
|
-
|
|
375
|
-
], 40,
|
|
456
|
+
C(p, { name: "bold" })
|
|
457
|
+
], 40, $a)) : l.id === "italic" ? (i(), m("button", {
|
|
376
458
|
key: 4,
|
|
377
459
|
"data-toolbar-item": "italic",
|
|
378
|
-
disabled: !
|
|
460
|
+
disabled: !d(N)(l, e.state),
|
|
379
461
|
"aria-label": e.translate("italic"),
|
|
380
|
-
"aria-pressed":
|
|
462
|
+
"aria-pressed": d(X)(l, e.state, e.state.italic),
|
|
381
463
|
type: "button",
|
|
382
464
|
title: e.translate("italic"),
|
|
383
|
-
onMousedown: a[5] || (a[5] =
|
|
465
|
+
onMousedown: a[5] || (a[5] = h(() => {
|
|
384
466
|
}, ["prevent"])),
|
|
385
|
-
onClick: (
|
|
467
|
+
onClick: (v) => w(l, e.commands.italic)
|
|
386
468
|
}, [
|
|
387
|
-
|
|
388
|
-
], 40,
|
|
469
|
+
C(p, { name: "italic" })
|
|
470
|
+
], 40, Ha)) : l.id === "underline" ? (i(), m("button", {
|
|
389
471
|
key: 5,
|
|
390
472
|
"data-toolbar-item": "underline",
|
|
391
|
-
disabled: !
|
|
473
|
+
disabled: !d(N)(l, e.state),
|
|
392
474
|
"aria-label": e.translate("underline"),
|
|
393
|
-
"aria-pressed":
|
|
475
|
+
"aria-pressed": d(X)(l, e.state, e.state.underline),
|
|
394
476
|
type: "button",
|
|
395
477
|
title: e.translate("underline"),
|
|
396
|
-
onMousedown: a[6] || (a[6] =
|
|
478
|
+
onMousedown: a[6] || (a[6] = h(() => {
|
|
397
479
|
}, ["prevent"])),
|
|
398
|
-
onClick: (
|
|
480
|
+
onClick: (v) => w(l, e.commands.underline)
|
|
399
481
|
}, [
|
|
400
|
-
|
|
401
|
-
], 40,
|
|
482
|
+
C(p, { name: "underline" })
|
|
483
|
+
], 40, Va)) : l.id === "strike" ? (i(), m("button", {
|
|
402
484
|
key: 6,
|
|
403
485
|
"data-toolbar-item": "strike",
|
|
404
|
-
disabled: !
|
|
486
|
+
disabled: !d(N)(l, e.state),
|
|
405
487
|
"aria-label": e.translate("strike"),
|
|
406
|
-
"aria-pressed":
|
|
488
|
+
"aria-pressed": d(X)(l, e.state, e.state.strikethrough),
|
|
407
489
|
type: "button",
|
|
408
490
|
title: e.translate("strike"),
|
|
409
|
-
onMousedown: a[7] || (a[7] =
|
|
491
|
+
onMousedown: a[7] || (a[7] = h(() => {
|
|
410
492
|
}, ["prevent"])),
|
|
411
|
-
onClick: (
|
|
493
|
+
onClick: (v) => w(l, e.commands.strikethrough)
|
|
412
494
|
}, [
|
|
413
|
-
|
|
414
|
-
], 40,
|
|
495
|
+
C(p, { name: "strike" })
|
|
496
|
+
], 40, Sa)) : l.id === "mark" ? (i(), m("button", {
|
|
415
497
|
key: 7,
|
|
416
498
|
"data-toolbar-item": "mark",
|
|
417
|
-
disabled: !
|
|
499
|
+
disabled: !d(N)(l, e.state),
|
|
418
500
|
"aria-label": e.translate("mark"),
|
|
419
|
-
"aria-pressed":
|
|
501
|
+
"aria-pressed": d(X)(l, e.state, e.state.mark),
|
|
420
502
|
type: "button",
|
|
421
503
|
title: e.translate("mark"),
|
|
422
|
-
onMousedown: a[8] || (a[8] =
|
|
504
|
+
onMousedown: a[8] || (a[8] = h(() => {
|
|
423
505
|
}, ["prevent"])),
|
|
424
|
-
onClick: (
|
|
425
|
-
}, " M ", 40,
|
|
506
|
+
onClick: (v) => w(l, e.commands.mark)
|
|
507
|
+
}, " M ", 40, Aa)) : l.id === "code" ? (i(), m("button", {
|
|
426
508
|
key: 8,
|
|
427
509
|
class: "markdown-editor__toolbar-code",
|
|
428
510
|
"data-toolbar-item": "code",
|
|
@@ -431,13 +513,13 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
431
513
|
"aria-pressed": e.state.code || e.state.codeBlock,
|
|
432
514
|
title: e.translate(e.state.codeBlock ? "codeBlock" : "code"),
|
|
433
515
|
type: "button",
|
|
434
|
-
onMousedown: a[9] || (a[9] =
|
|
516
|
+
onMousedown: a[9] || (a[9] = h(() => {
|
|
435
517
|
}, ["prevent"])),
|
|
436
|
-
onClick: a[10] || (a[10] = (
|
|
518
|
+
onClick: a[10] || (a[10] = (v) => u("toggle-code-menu", r(v)))
|
|
437
519
|
}, [
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
], 40,
|
|
520
|
+
C(p, { name: "code" }),
|
|
521
|
+
C(p, { name: "chevronDown" })
|
|
522
|
+
], 40, Pa)) : l.id === "bullet-list" ? (i(), m("button", {
|
|
441
523
|
key: 9,
|
|
442
524
|
class: "markdown-editor__toolbar-list",
|
|
443
525
|
"data-toolbar-item": "list",
|
|
@@ -446,38 +528,38 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
446
528
|
"aria-pressed": e.state.bulletList || e.state.orderedList,
|
|
447
529
|
title: e.translate(e.state.orderedList ? "orderedList" : "bulletList"),
|
|
448
530
|
type: "button",
|
|
449
|
-
onMousedown: a[11] || (a[11] =
|
|
531
|
+
onMousedown: a[11] || (a[11] = h(() => {
|
|
450
532
|
}, ["prevent"])),
|
|
451
|
-
onClick: a[12] || (a[12] = (
|
|
533
|
+
onClick: a[12] || (a[12] = (v) => u("toggle-list-menu", r(v)))
|
|
452
534
|
}, [
|
|
453
|
-
|
|
535
|
+
C(p, {
|
|
454
536
|
name: e.state.orderedList ? "orderedList" : "bulletList"
|
|
455
537
|
}, null, 8, ["name"]),
|
|
456
|
-
|
|
457
|
-
], 40,
|
|
538
|
+
C(p, { name: "chevronDown" })
|
|
539
|
+
], 40, za)) : l.id === "ordered-list" ? (i(), m(z, { key: 10 }, [], 64)) : l.id === "quote" ? (i(), m("button", {
|
|
458
540
|
key: 11,
|
|
459
541
|
"data-toolbar-item": "quote",
|
|
460
|
-
disabled: !
|
|
542
|
+
disabled: !d(N)(l, e.state),
|
|
461
543
|
"aria-label": e.translate("quote"),
|
|
462
|
-
"aria-pressed":
|
|
544
|
+
"aria-pressed": d(X)(l, e.state, e.state.quote),
|
|
463
545
|
type: "button",
|
|
464
546
|
title: e.translate("quote"),
|
|
465
|
-
onMousedown: a[13] || (a[13] =
|
|
547
|
+
onMousedown: a[13] || (a[13] = h(() => {
|
|
466
548
|
}, ["prevent"])),
|
|
467
|
-
onClick: (
|
|
549
|
+
onClick: (v) => w(l, e.commands.quote)
|
|
468
550
|
}, [
|
|
469
|
-
|
|
470
|
-
], 40,
|
|
551
|
+
C(p, { name: "quote" })
|
|
552
|
+
], 40, Fa)) : l.id === "fold-heading" ? (i(), m("button", {
|
|
471
553
|
key: 12,
|
|
472
554
|
"data-toolbar-item": "fold-heading",
|
|
473
555
|
"aria-label": e.translate("foldHeading"),
|
|
474
556
|
"aria-pressed": e.state.headingFolded,
|
|
475
557
|
type: "button",
|
|
476
558
|
title: e.translate("foldHeading"),
|
|
477
|
-
onMousedown: a[14] || (a[14] =
|
|
559
|
+
onMousedown: a[14] || (a[14] = h(() => {
|
|
478
560
|
}, ["prevent"])),
|
|
479
|
-
onClick: a[15] || (a[15] = (
|
|
480
|
-
}, " ▸ ", 40,
|
|
561
|
+
onClick: a[15] || (a[15] = (v) => u("execute", "fold-heading", e.commands.toggleHeadingFolding))
|
|
562
|
+
}, " ▸ ", 40, Na)) : l.id === "code-block" ? (i(), m(z, { key: 13 }, [], 64)) : l.id === "link" ? (i(), m("button", {
|
|
481
563
|
key: 14,
|
|
482
564
|
"data-toolbar-item": "link",
|
|
483
565
|
"aria-expanded": e.linkEditorVisible,
|
|
@@ -485,97 +567,111 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
485
567
|
type: "button",
|
|
486
568
|
"aria-label": e.translate("link"),
|
|
487
569
|
title: e.translate("link"),
|
|
488
|
-
onMousedown: a[16] || (a[16] =
|
|
570
|
+
onMousedown: a[16] || (a[16] = h(() => {
|
|
489
571
|
}, ["prevent"])),
|
|
490
|
-
onClick: a[17] || (a[17] = (
|
|
572
|
+
onClick: a[17] || (a[17] = (v) => u("toggle-link-editor", r(v)))
|
|
491
573
|
}, [
|
|
492
|
-
|
|
493
|
-
], 40,
|
|
574
|
+
C(p, { name: "link" })
|
|
575
|
+
], 40, Da)) : l.id === "background-color" ? (i(), m("button", {
|
|
494
576
|
key: 15,
|
|
495
|
-
"data-toolbar-item": "color",
|
|
496
|
-
|
|
497
|
-
|
|
577
|
+
"data-toolbar-item": "background-color",
|
|
578
|
+
"aria-expanded": e.backgroundColorMenuVisible,
|
|
579
|
+
"aria-label": e.translate("backgroundColor"),
|
|
580
|
+
title: e.translate("backgroundColor"),
|
|
581
|
+
type: "button",
|
|
582
|
+
onMousedown: a[18] || (a[18] = h(() => {
|
|
583
|
+
}, ["prevent"])),
|
|
584
|
+
onClick: a[19] || (a[19] = (v) => u("toggle-background-color-menu", r(v)))
|
|
498
585
|
}, [
|
|
499
|
-
g("
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
value: "#202125",
|
|
503
|
-
onInput: a[18] || (a[18] = (l) => d("execute", "color", e.commands.setColor(l.target.value)))
|
|
504
|
-
}, null, 40, pa)
|
|
505
|
-
], 8, Ma)) : n.id === "image" ? (r(), m("button", {
|
|
586
|
+
a[35] || (a[35] = g("span", { class: "markdown-editor__background-color-trigger" }, "A", -1)),
|
|
587
|
+
C(p, { name: "chevronDown" })
|
|
588
|
+
], 40, Ra)) : l.id === "color" ? (i(), m("button", {
|
|
506
589
|
key: 16,
|
|
590
|
+
"data-toolbar-item": "color",
|
|
591
|
+
"aria-expanded": e.colorMenuVisible,
|
|
592
|
+
"aria-label": e.translate("color"),
|
|
593
|
+
title: e.translate("color"),
|
|
594
|
+
type: "button",
|
|
595
|
+
onMousedown: a[20] || (a[20] = h(() => {
|
|
596
|
+
}, ["prevent"])),
|
|
597
|
+
onClick: a[21] || (a[21] = (v) => u("toggle-color-menu", r(v)))
|
|
598
|
+
}, [
|
|
599
|
+
a[36] || (a[36] = g("span", { class: "markdown-editor__color-trigger" }, "A", -1)),
|
|
600
|
+
C(p, { name: "chevronDown" })
|
|
601
|
+
], 40, Ia)) : l.id === "image" ? (i(), m("button", {
|
|
602
|
+
key: 17,
|
|
507
603
|
"data-toolbar-item": "image",
|
|
508
604
|
"aria-expanded": e.imageEditorVisible,
|
|
509
605
|
"aria-label": e.translate("image"),
|
|
510
606
|
type: "button",
|
|
511
607
|
title: e.translate("image"),
|
|
512
|
-
onMousedown: a[
|
|
608
|
+
onMousedown: a[22] || (a[22] = h(() => {
|
|
513
609
|
}, ["prevent"])),
|
|
514
|
-
onClick: a[
|
|
610
|
+
onClick: a[23] || (a[23] = (v) => u("toggle-image-editor", r(v)))
|
|
515
611
|
}, [
|
|
516
|
-
|
|
517
|
-
], 40,
|
|
518
|
-
key:
|
|
612
|
+
C(p, { name: "image" })
|
|
613
|
+
], 40, qa)) : l.id === "formula" ? (i(), m("button", {
|
|
614
|
+
key: 18,
|
|
519
615
|
"data-toolbar-item": "formula",
|
|
520
616
|
"aria-expanded": e.formulaMenuVisible,
|
|
521
617
|
"aria-label": e.translate("formula"),
|
|
522
618
|
"aria-pressed": e.state.formula,
|
|
523
619
|
title: e.translate("formula"),
|
|
524
620
|
type: "button",
|
|
525
|
-
onMousedown: a[
|
|
621
|
+
onMousedown: a[24] || (a[24] = h(() => {
|
|
526
622
|
}, ["prevent"])),
|
|
527
|
-
onClick: a[
|
|
623
|
+
onClick: a[25] || (a[25] = (v) => u("toggle-formula-menu", r(v)))
|
|
528
624
|
}, [
|
|
529
|
-
|
|
530
|
-
], 40,
|
|
531
|
-
key:
|
|
625
|
+
C(p, { name: "function" })
|
|
626
|
+
], 40, Oa)) : l.id === "mermaid" ? (i(), m("button", {
|
|
627
|
+
key: 19,
|
|
532
628
|
"data-toolbar-item": "mermaid",
|
|
533
629
|
type: "button",
|
|
534
630
|
"aria-label": e.translate("mermaid"),
|
|
535
631
|
"aria-pressed": e.state.mermaid,
|
|
536
632
|
title: e.translate("mermaid"),
|
|
537
|
-
onMousedown: a[
|
|
633
|
+
onMousedown: a[26] || (a[26] = h(() => {
|
|
538
634
|
}, ["prevent"])),
|
|
539
|
-
onClick: (
|
|
635
|
+
onClick: (v) => w(l, e.commands.insertMermaid)
|
|
540
636
|
}, [
|
|
541
|
-
|
|
542
|
-
], 40,
|
|
543
|
-
key:
|
|
637
|
+
C(p, { name: "mermaid" })
|
|
638
|
+
], 40, ja)) : l.id === "html" ? (i(), m("button", {
|
|
639
|
+
key: 20,
|
|
544
640
|
"data-toolbar-item": "html",
|
|
545
641
|
type: "button",
|
|
546
642
|
"aria-label": e.translate("html"),
|
|
547
643
|
title: e.translate("html"),
|
|
548
|
-
onMousedown: a[
|
|
644
|
+
onMousedown: a[27] || (a[27] = h(() => {
|
|
549
645
|
}, ["prevent"])),
|
|
550
|
-
onClick: a[
|
|
551
|
-
}, " </> ", 40,
|
|
552
|
-
key:
|
|
646
|
+
onClick: a[28] || (a[28] = (v) => u("insert-html"))
|
|
647
|
+
}, " </> ", 40, Ua)) : l.id === "horizontal-rule" ? (i(), m("button", {
|
|
648
|
+
key: 21,
|
|
553
649
|
"data-toolbar-item": "horizontal-rule",
|
|
554
650
|
"aria-label": e.translate("horizontalRule"),
|
|
555
651
|
type: "button",
|
|
556
652
|
title: e.translate("horizontalRule"),
|
|
557
|
-
onMousedown: a[
|
|
653
|
+
onMousedown: a[29] || (a[29] = h(() => {
|
|
558
654
|
}, ["prevent"])),
|
|
559
|
-
onClick: a[
|
|
655
|
+
onClick: a[30] || (a[30] = (v) => u("execute", "horizontal-rule", e.commands.horizontalRule))
|
|
560
656
|
}, [
|
|
561
|
-
|
|
562
|
-
], 40,
|
|
563
|
-
key:
|
|
657
|
+
C(p, { name: "horizontalRule" })
|
|
658
|
+
], 40, Wa)) : l.id === "table" ? (i(), m("button", {
|
|
659
|
+
key: 22,
|
|
564
660
|
"data-toolbar-item": "table",
|
|
565
661
|
"aria-label": e.translate("table"),
|
|
566
662
|
type: "button",
|
|
567
663
|
title: e.translate("table"),
|
|
568
|
-
onMousedown: a[
|
|
664
|
+
onMousedown: a[31] || (a[31] = h(() => {
|
|
569
665
|
}, ["prevent"])),
|
|
570
|
-
onClick: a[
|
|
666
|
+
onClick: a[32] || (a[32] = (v) => u("execute", "table", e.commands.insertTable()))
|
|
571
667
|
}, [
|
|
572
|
-
|
|
573
|
-
], 40,
|
|
668
|
+
C(p, { name: "table" })
|
|
669
|
+
], 40, Qa)) : $("", !0)
|
|
574
670
|
], 64))), 128))
|
|
575
|
-
], 8,
|
|
576
|
-
|
|
671
|
+
], 8, La))), 128)),
|
|
672
|
+
we(s.$slots, "default", {
|
|
577
673
|
commands: e.commands,
|
|
578
|
-
execute: (
|
|
674
|
+
execute: (M) => u("execute", void 0, M)
|
|
579
675
|
}, void 0, !0)
|
|
580
676
|
]),
|
|
581
677
|
g("button", {
|
|
@@ -585,84 +681,88 @@ const ht = `<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" fill=
|
|
|
585
681
|
"aria-expanded": e.modeMenuVisible,
|
|
586
682
|
"aria-label": e.translate("mode"),
|
|
587
683
|
title: e.translate("mode"),
|
|
588
|
-
onMousedown: a[
|
|
684
|
+
onMousedown: a[33] || (a[33] = h(() => {
|
|
589
685
|
}, ["prevent"])),
|
|
590
|
-
onClick: a[
|
|
686
|
+
onClick: a[34] || (a[34] = (M) => u("toggle-mode-menu", r(M)))
|
|
591
687
|
}, [
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
], 40,
|
|
595
|
-
], 8,
|
|
688
|
+
C(p, { name: "gear" }),
|
|
689
|
+
C(p, { name: "chevronDown" })
|
|
690
|
+
], 40, Ga)
|
|
691
|
+
], 8, pa));
|
|
596
692
|
}
|
|
597
|
-
}),
|
|
693
|
+
}), Ya = /* @__PURE__ */ ie(Ka, [["__scopeId", "data-v-411fb713"]]), Za = [
|
|
598
694
|
"--markdown-background",
|
|
599
695
|
"--markdown-border",
|
|
600
696
|
"--markdown-focus-background",
|
|
601
697
|
"--markdown-focus-text",
|
|
602
698
|
"--markdown-text"
|
|
603
699
|
];
|
|
604
|
-
function
|
|
605
|
-
const
|
|
606
|
-
let
|
|
607
|
-
function
|
|
608
|
-
|
|
700
|
+
function P(e, k = {}) {
|
|
701
|
+
const x = y(!1);
|
|
702
|
+
let c;
|
|
703
|
+
function w() {
|
|
704
|
+
x.value = !1, c?.(), c = void 0;
|
|
609
705
|
}
|
|
610
|
-
async function
|
|
611
|
-
|
|
706
|
+
async function u(s) {
|
|
707
|
+
w(), x.value = !0, await oe();
|
|
612
708
|
const a = e();
|
|
613
709
|
if (a === void 0) return;
|
|
614
|
-
const
|
|
615
|
-
if (
|
|
616
|
-
const
|
|
617
|
-
for (const
|
|
618
|
-
a.style.setProperty(
|
|
710
|
+
const M = s.closest(".markdown-editor");
|
|
711
|
+
if (M !== null) {
|
|
712
|
+
const v = getComputedStyle(M);
|
|
713
|
+
for (const V of Za)
|
|
714
|
+
a.style.setProperty(V, v.getPropertyValue(V));
|
|
619
715
|
}
|
|
620
|
-
|
|
621
|
-
const { x:
|
|
622
|
-
middleware: [
|
|
623
|
-
placement:
|
|
716
|
+
c = dt(s, a, async () => {
|
|
717
|
+
const { x: v, y: V } = await ut(s, a, {
|
|
718
|
+
middleware: [mt(6), ct({ padding: 8 }), gt({ padding: 8 })],
|
|
719
|
+
placement: k.placement ?? "bottom-start",
|
|
624
720
|
strategy: "fixed"
|
|
625
721
|
});
|
|
626
|
-
Object.assign(a.style, {
|
|
722
|
+
Object.assign(a.style, {
|
|
723
|
+
left: `${v}px`,
|
|
724
|
+
position: "fixed",
|
|
725
|
+
top: `${V}px`
|
|
726
|
+
});
|
|
627
727
|
});
|
|
628
728
|
}
|
|
629
|
-
async function s
|
|
630
|
-
|
|
729
|
+
async function r(s) {
|
|
730
|
+
x.value ? w() : await u(s);
|
|
631
731
|
}
|
|
632
|
-
return
|
|
633
|
-
close:
|
|
634
|
-
contains: (
|
|
635
|
-
open:
|
|
636
|
-
toggle:
|
|
637
|
-
visible:
|
|
732
|
+
return he(w), {
|
|
733
|
+
close: w,
|
|
734
|
+
contains: (s) => e()?.contains(s) ?? !1,
|
|
735
|
+
open: u,
|
|
736
|
+
toggle: r,
|
|
737
|
+
visible: x
|
|
638
738
|
};
|
|
639
739
|
}
|
|
640
|
-
function
|
|
641
|
-
return e.length === 0 ?
|
|
740
|
+
function Ve(e, k) {
|
|
741
|
+
return e.length === 0 ? k : k.length === 0 ? e : `${e}
|
|
642
742
|
|
|
643
|
-
${
|
|
743
|
+
${k}`;
|
|
644
744
|
}
|
|
645
|
-
function
|
|
646
|
-
const
|
|
647
|
-
let
|
|
648
|
-
function
|
|
649
|
-
|
|
745
|
+
function Xa(e) {
|
|
746
|
+
const k = y(e.initialValue);
|
|
747
|
+
let x = !1;
|
|
748
|
+
function c(s, a) {
|
|
749
|
+
x = !0, a !== "markup" && e.getMarkupHost()?.setValue(s), a !== "visual" && e.getVisualHost()?.setValue(s), x = !1;
|
|
650
750
|
}
|
|
651
|
-
function
|
|
652
|
-
|
|
751
|
+
function w(s) {
|
|
752
|
+
s !== k.value && (k.value = s, c(s));
|
|
653
753
|
}
|
|
654
|
-
function
|
|
655
|
-
|
|
754
|
+
function u(s) {
|
|
755
|
+
s !== k.value && (k.value = s, e.onChange(s), c(s));
|
|
656
756
|
}
|
|
657
|
-
function s
|
|
658
|
-
|
|
757
|
+
function r(s, a) {
|
|
758
|
+
s === k.value || x || (k.value = s, e.onChange(s), c(s, a));
|
|
659
759
|
}
|
|
660
|
-
return { setExternalValue:
|
|
760
|
+
return { setExternalValue: w, setValue: u, updateFromHost: r, value: k };
|
|
661
761
|
}
|
|
662
|
-
const
|
|
762
|
+
const Ja = ["data-locale", "data-mode", "data-theme"], _a = {
|
|
663
763
|
key: 0,
|
|
664
764
|
class: "markdown-editor__header"
|
|
665
|
-
},
|
|
765
|
+
}, el = /* @__PURE__ */ ne({
|
|
666
766
|
name: "MarkdownEditor",
|
|
667
767
|
__name: "MarkdownEditor",
|
|
668
768
|
props: {
|
|
@@ -679,8 +779,8 @@ const za = ["data-locale", "data-mode", "data-theme"], Fa = {
|
|
|
679
779
|
features: { default: void 0 }
|
|
680
780
|
},
|
|
681
781
|
emits: ["cancel", "change", "mode-change", "update:modelValue", "update:mode", "submit"],
|
|
682
|
-
setup(e, { expose:
|
|
683
|
-
const
|
|
782
|
+
setup(e, { expose: k, emit: x }) {
|
|
783
|
+
const c = e, w = x, u = ot(), r = st(), s = Se()?.appContext, a = y(), M = y(), l = y(c.mode), v = y("https://"), V = y(""), o = y(""), b = y(), S = y(""), _ = y(""), j = y(!1), E = y({
|
|
684
784
|
bold: !1,
|
|
685
785
|
bulletList: !1,
|
|
686
786
|
code: !1,
|
|
@@ -703,21 +803,28 @@ const za = ["data-locale", "data-mode", "data-theme"], Fa = {
|
|
|
703
803
|
quote: !1,
|
|
704
804
|
strikethrough: !1,
|
|
705
805
|
underline: !1
|
|
706
|
-
}),
|
|
707
|
-
|
|
708
|
-
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
806
|
+
}), me = He(() => E.value.headingLevel?.toString() ?? "paragraph"), Ae = He(() => me.value === "paragraph" ? "H" : `H${me.value}`), ye = y(), D = y(), Ce = y(), U = P(() => D.value?.getElement("code")), W = P(() => D.value?.getElement("background-color")), Q = P(() => D.value?.getElement("color")), I = P(() => D.value?.getElement("formula")), G = P(() => D.value?.getElement("heading")), q = P(() => b.value?.element), ee = P(() => Ce.value?.element, {
|
|
807
|
+
placement: "top"
|
|
808
|
+
}), A = P(() => ye.value?.element), K = P(() => D.value?.getElement("list")), Y = P(() => D.value?.getElement("mode"));
|
|
809
|
+
let L, ce = "visual", Z = 0, ge = !1, T;
|
|
810
|
+
const {
|
|
811
|
+
setExternalValue: Pe,
|
|
812
|
+
setValue: te,
|
|
813
|
+
updateFromHost: Me,
|
|
814
|
+
value: O
|
|
815
|
+
} = Xa({
|
|
816
|
+
getMarkupHost: () => L,
|
|
817
|
+
getVisualHost: () => T,
|
|
818
|
+
initialValue: c.modelValue,
|
|
712
819
|
onChange: (t) => {
|
|
713
|
-
|
|
820
|
+
w("update:modelValue", t), w("change", t);
|
|
714
821
|
}
|
|
715
822
|
});
|
|
716
|
-
function
|
|
717
|
-
return
|
|
823
|
+
function ve(t) {
|
|
824
|
+
return lt(c.locale)[t];
|
|
718
825
|
}
|
|
719
|
-
function
|
|
720
|
-
|
|
826
|
+
function se() {
|
|
827
|
+
L?.destroy(), T?.destroy(), L = void 0, T = void 0, E.value = {
|
|
721
828
|
bold: !1,
|
|
722
829
|
bulletList: !1,
|
|
723
830
|
code: !1,
|
|
@@ -742,584 +849,635 @@ const za = ["data-locale", "data-mode", "data-theme"], Fa = {
|
|
|
742
849
|
underline: !1
|
|
743
850
|
};
|
|
744
851
|
}
|
|
745
|
-
function
|
|
746
|
-
|
|
852
|
+
function ze(t) {
|
|
853
|
+
l.value === "markup" || l.value === "split" && typeof t == "object" ? L?.moveCursor(t) : T?.moveCursor(typeof t == "object" ? "start" : t);
|
|
747
854
|
}
|
|
748
|
-
function
|
|
749
|
-
|
|
855
|
+
function Fe(t) {
|
|
856
|
+
l.value === "markup" || l.value === "split" && L?.hasFocus() ? L?.insert(t) : T?.insert(t);
|
|
750
857
|
}
|
|
751
|
-
function
|
|
752
|
-
if (
|
|
858
|
+
function Ne() {
|
|
859
|
+
if (S.value.trim().length === 0)
|
|
753
860
|
return;
|
|
754
|
-
|
|
755
|
-
const t =
|
|
756
|
-
|
|
861
|
+
ge = !0;
|
|
862
|
+
const t = _.value.trim() || S.value.trim();
|
|
863
|
+
B() ? L?.run(r.setLink(S.value.trim(), void 0, t, j.value)) : F(void 0, u.setLink(S.value.trim(), t, t, j.value)), A.close();
|
|
864
|
+
}
|
|
865
|
+
function pe() {
|
|
866
|
+
A.close();
|
|
867
|
+
}
|
|
868
|
+
function De() {
|
|
869
|
+
const t = v.value.trim();
|
|
870
|
+
t.length !== 0 && (B() ? L?.run(
|
|
871
|
+
r.insertImage(t, V.value.trim() || "Image", o.value.trim() || void 0)
|
|
872
|
+
) : F(
|
|
873
|
+
void 0,
|
|
874
|
+
u.insertImage(t, V.value.trim() || "Image", o.value.trim() || void 0)
|
|
875
|
+
), q.close());
|
|
757
876
|
}
|
|
758
|
-
function
|
|
759
|
-
|
|
877
|
+
function Re() {
|
|
878
|
+
q.close();
|
|
760
879
|
}
|
|
761
|
-
function
|
|
762
|
-
|
|
763
|
-
|
|
880
|
+
function Ie(t) {
|
|
881
|
+
B() ? L?.run(t === "paragraph" ? r.paragraph : r.heading(Number(t))) : t === "paragraph" ? F(void 0, u.paragraph) : F(void 0, u.heading(Number(t))), G.close();
|
|
882
|
+
}
|
|
883
|
+
async function qe(t) {
|
|
884
|
+
B(), await G.toggle(t);
|
|
885
|
+
}
|
|
886
|
+
async function Oe(t) {
|
|
887
|
+
B(), await U.toggle(t);
|
|
764
888
|
}
|
|
765
|
-
function
|
|
766
|
-
|
|
889
|
+
async function je(t) {
|
|
890
|
+
B() || await Q.toggle(t);
|
|
767
891
|
}
|
|
768
|
-
function
|
|
769
|
-
|
|
892
|
+
async function Ue(t) {
|
|
893
|
+
B() || await W.toggle(t);
|
|
770
894
|
}
|
|
771
|
-
|
|
772
|
-
|
|
895
|
+
function We(t) {
|
|
896
|
+
W.close(), !B() && T?.run(u.setBackgroundColor(t));
|
|
773
897
|
}
|
|
774
|
-
|
|
775
|
-
|
|
898
|
+
function Qe(t) {
|
|
899
|
+
Q.close(), !B() && T?.run(u.setColor(t));
|
|
776
900
|
}
|
|
777
|
-
function
|
|
778
|
-
|
|
901
|
+
function xe(t, n) {
|
|
902
|
+
B() ? L?.run(r[n]) : F(void 0, t), U.close();
|
|
779
903
|
}
|
|
780
|
-
async function
|
|
781
|
-
if (
|
|
782
|
-
|
|
904
|
+
async function Ge(t) {
|
|
905
|
+
if (B(), A.visible.value) {
|
|
906
|
+
A.close();
|
|
783
907
|
return;
|
|
784
908
|
}
|
|
785
|
-
|
|
909
|
+
S.value = E.value.linkHref ?? "", _.value = E.value.linkText ?? window.getSelection()?.toString().trim() ?? "", j.value = E.value.linkOpenInNewWindow, await A.open(t);
|
|
786
910
|
}
|
|
787
|
-
async function
|
|
788
|
-
const
|
|
789
|
-
if (
|
|
790
|
-
|
|
911
|
+
async function Le(t) {
|
|
912
|
+
const n = E.value.linkHref;
|
|
913
|
+
if (n === void 0 && t === void 0) {
|
|
914
|
+
pe();
|
|
791
915
|
return;
|
|
792
916
|
}
|
|
793
|
-
|
|
794
|
-
const
|
|
795
|
-
|
|
917
|
+
S.value = t?.getAttribute("href") ?? n ?? "", _.value = t?.textContent ?? E.value.linkText ?? "", j.value = t?.getAttribute("target") === "_blank" || E.value.linkOpenInNewWindow;
|
|
918
|
+
const f = window.getSelection()?.anchorNode, R = f instanceof Element ? f : f?.parentElement, fe = t ?? R?.closest("a");
|
|
919
|
+
fe != null && await A.open(fe);
|
|
796
920
|
}
|
|
797
|
-
function
|
|
798
|
-
const
|
|
799
|
-
if (!(
|
|
800
|
-
const
|
|
801
|
-
if (
|
|
802
|
-
t.preventDefault(),
|
|
921
|
+
function Ke(t) {
|
|
922
|
+
const n = t.target;
|
|
923
|
+
if (!(n instanceof Element)) return;
|
|
924
|
+
const f = n.closest(".ProseMirror img");
|
|
925
|
+
if (f !== null) {
|
|
926
|
+
t.preventDefault(), T?.selectElement(f), ee.open(f);
|
|
803
927
|
return;
|
|
804
928
|
}
|
|
805
|
-
const
|
|
806
|
-
|
|
929
|
+
const R = n.closest(".ProseMirror a");
|
|
930
|
+
R !== null && (t.preventDefault(), T?.selectElement(R), Le(R));
|
|
807
931
|
}
|
|
808
|
-
async function
|
|
809
|
-
|
|
932
|
+
async function Ye(t) {
|
|
933
|
+
B(), await K.toggle(t);
|
|
810
934
|
}
|
|
811
|
-
function
|
|
812
|
-
|
|
935
|
+
function re(t, n) {
|
|
936
|
+
B() ? L?.run(r[n]) : F(void 0, t), K.close();
|
|
813
937
|
}
|
|
814
|
-
async function
|
|
815
|
-
|
|
938
|
+
async function Ze(t) {
|
|
939
|
+
B(), await q.toggle(t);
|
|
816
940
|
}
|
|
817
|
-
async function
|
|
818
|
-
|
|
819
|
-
const
|
|
820
|
-
|
|
941
|
+
async function Be(t) {
|
|
942
|
+
F(void 0, t), await oe();
|
|
943
|
+
const n = M.value?.querySelector(".ProseMirror img.ProseMirror-selectednode");
|
|
944
|
+
n != null && await ee.open(n);
|
|
821
945
|
}
|
|
822
|
-
async function
|
|
823
|
-
await
|
|
946
|
+
async function Xe(t) {
|
|
947
|
+
await Y.toggle(t);
|
|
824
948
|
}
|
|
825
|
-
async function
|
|
826
|
-
|
|
949
|
+
async function Je(t) {
|
|
950
|
+
Y.close(), await be(t);
|
|
827
951
|
}
|
|
828
|
-
function
|
|
829
|
-
|
|
952
|
+
function _e() {
|
|
953
|
+
B() ? L?.run(r.insertHtml) : T?.run(u.insertHtml);
|
|
830
954
|
}
|
|
831
|
-
async function
|
|
832
|
-
|
|
955
|
+
async function et() {
|
|
956
|
+
I.close(), !E.value.formula && (B() ? L?.run(r.insertMathBlock) : T?.run(u.insertMathBlock));
|
|
833
957
|
}
|
|
834
|
-
function
|
|
835
|
-
|
|
958
|
+
function tt() {
|
|
959
|
+
I.close(), B() ? L?.run(r.insertInlineMath) : T?.run(u.insertInlineMath);
|
|
836
960
|
}
|
|
837
|
-
async function
|
|
838
|
-
|
|
961
|
+
async function at(t) {
|
|
962
|
+
B(), E.value.formula || await I.toggle(t);
|
|
839
963
|
}
|
|
840
|
-
function
|
|
841
|
-
const
|
|
842
|
-
if (
|
|
843
|
-
for (const
|
|
844
|
-
|
|
964
|
+
function Te(t) {
|
|
965
|
+
const n = t.target;
|
|
966
|
+
if (n instanceof Node)
|
|
967
|
+
for (const f of [
|
|
968
|
+
G,
|
|
969
|
+
U,
|
|
970
|
+
W,
|
|
971
|
+
Q,
|
|
972
|
+
I,
|
|
973
|
+
A,
|
|
974
|
+
K,
|
|
975
|
+
q,
|
|
976
|
+
ee,
|
|
977
|
+
Y
|
|
978
|
+
])
|
|
979
|
+
f.contains(n) || f.close();
|
|
845
980
|
}
|
|
846
|
-
function
|
|
981
|
+
function Ee(t) {
|
|
847
982
|
if (t.key === "Escape")
|
|
848
|
-
for (const
|
|
983
|
+
for (const n of [
|
|
984
|
+
G,
|
|
985
|
+
U,
|
|
986
|
+
W,
|
|
987
|
+
Q,
|
|
988
|
+
I,
|
|
989
|
+
A,
|
|
990
|
+
K,
|
|
991
|
+
q,
|
|
992
|
+
ee,
|
|
993
|
+
Y
|
|
994
|
+
])
|
|
995
|
+
n.close();
|
|
849
996
|
}
|
|
850
|
-
function
|
|
851
|
-
|
|
852
|
-
directiveAppContext:
|
|
853
|
-
directiveComponents:
|
|
854
|
-
features:
|
|
855
|
-
editable: !
|
|
856
|
-
initialValue:
|
|
857
|
-
onCancel: () => (
|
|
997
|
+
function de() {
|
|
998
|
+
l.value !== "markup" && M.value !== void 0 && (T = nt({
|
|
999
|
+
directiveAppContext: s,
|
|
1000
|
+
directiveComponents: c.directiveComponents,
|
|
1001
|
+
features: c.features,
|
|
1002
|
+
editable: !c.readonly,
|
|
1003
|
+
initialValue: O.value,
|
|
1004
|
+
onCancel: () => (w("cancel"), !0),
|
|
858
1005
|
onChange: (t) => {
|
|
859
|
-
|
|
1006
|
+
Me(t, "visual"), M.value !== void 0 && ke(M.value, c.locale);
|
|
860
1007
|
},
|
|
861
1008
|
onSelectionChange: (t) => {
|
|
862
|
-
|
|
1009
|
+
E.value = t, ge ? ge = !1 : Le();
|
|
863
1010
|
},
|
|
864
|
-
onSubmit: () => (
|
|
865
|
-
placeholder:
|
|
866
|
-
target:
|
|
867
|
-
}),
|
|
868
|
-
editable: !
|
|
869
|
-
initialValue:
|
|
870
|
-
onChange: (t) =>
|
|
1011
|
+
onSubmit: () => (w("submit"), !0),
|
|
1012
|
+
placeholder: c.placeholder,
|
|
1013
|
+
target: M.value
|
|
1014
|
+
}), ke(M.value, c.locale)), l.value !== "wysiwyg" && a.value !== void 0 && (L = it({
|
|
1015
|
+
editable: !c.readonly,
|
|
1016
|
+
initialValue: O.value,
|
|
1017
|
+
onChange: (t) => Me(t, "markup"),
|
|
871
1018
|
target: a.value
|
|
872
1019
|
}));
|
|
873
1020
|
}
|
|
874
|
-
async function
|
|
875
|
-
if (t ===
|
|
1021
|
+
async function be(t) {
|
|
1022
|
+
if (t === l.value)
|
|
876
1023
|
return;
|
|
877
|
-
const
|
|
878
|
-
|
|
1024
|
+
const n = ++Z;
|
|
1025
|
+
l.value = t, w("update:mode", t), w("mode-change", t), se(), await oe(), n === Z && de();
|
|
879
1026
|
}
|
|
880
|
-
function
|
|
881
|
-
return
|
|
1027
|
+
function B() {
|
|
1028
|
+
return l.value === "markup" ? !0 : l.value === "wysiwyg" ? !1 : (L?.hasFocus() ? ce = "markup" : T?.hasFocus() && (ce = "visual"), ce === "markup");
|
|
882
1029
|
}
|
|
883
|
-
function
|
|
884
|
-
if (!
|
|
885
|
-
if (
|
|
886
|
-
const
|
|
887
|
-
bold:
|
|
888
|
-
"fold-heading":
|
|
889
|
-
"horizontal-rule":
|
|
890
|
-
italic:
|
|
891
|
-
mark:
|
|
892
|
-
mermaid:
|
|
893
|
-
quote:
|
|
894
|
-
redo:
|
|
895
|
-
strike:
|
|
896
|
-
table:
|
|
897
|
-
underline:
|
|
898
|
-
undo:
|
|
1030
|
+
function F(t, n) {
|
|
1031
|
+
if (!c.readonly) {
|
|
1032
|
+
if (B() && t !== void 0) {
|
|
1033
|
+
const R = {
|
|
1034
|
+
bold: r.bold,
|
|
1035
|
+
"fold-heading": r.toggleHeadingFolding,
|
|
1036
|
+
"horizontal-rule": r.horizontalRule,
|
|
1037
|
+
italic: r.italic,
|
|
1038
|
+
mark: r.mark,
|
|
1039
|
+
mermaid: r.insertMermaid,
|
|
1040
|
+
quote: r.quote,
|
|
1041
|
+
redo: r.redo,
|
|
1042
|
+
strike: r.strikethrough,
|
|
1043
|
+
table: r.insertTable(),
|
|
1044
|
+
underline: r.underline,
|
|
1045
|
+
undo: r.undo
|
|
899
1046
|
}[t];
|
|
900
|
-
|
|
1047
|
+
R !== void 0 && L?.run(R);
|
|
901
1048
|
return;
|
|
902
1049
|
}
|
|
903
|
-
|
|
1050
|
+
T?.run(n);
|
|
904
1051
|
}
|
|
905
1052
|
}
|
|
906
|
-
return
|
|
907
|
-
() =>
|
|
1053
|
+
return ae(
|
|
1054
|
+
() => c.modelValue,
|
|
908
1055
|
(t) => {
|
|
909
|
-
t !==
|
|
1056
|
+
t !== O.value && Pe(t);
|
|
910
1057
|
}
|
|
911
|
-
),
|
|
912
|
-
() =>
|
|
1058
|
+
), ae(
|
|
1059
|
+
() => c.mode,
|
|
913
1060
|
(t) => {
|
|
914
|
-
|
|
1061
|
+
be(t);
|
|
915
1062
|
}
|
|
916
|
-
),
|
|
917
|
-
() =>
|
|
1063
|
+
), ae(
|
|
1064
|
+
() => c.locale,
|
|
918
1065
|
(t) => {
|
|
919
|
-
|
|
1066
|
+
M.value !== void 0 && ke(M.value, t);
|
|
1067
|
+
}
|
|
1068
|
+
), ae(
|
|
1069
|
+
() => c.features,
|
|
1070
|
+
async () => {
|
|
1071
|
+
const t = ++Z;
|
|
1072
|
+
se(), await oe(), t === Z && de();
|
|
920
1073
|
}
|
|
921
|
-
),
|
|
922
|
-
|
|
923
|
-
le(), await ee(), t === G && oe();
|
|
924
|
-
}), J(
|
|
925
|
-
() => u.readonly,
|
|
1074
|
+
), ae(
|
|
1075
|
+
() => c.readonly,
|
|
926
1076
|
async () => {
|
|
927
|
-
const t = ++
|
|
928
|
-
|
|
1077
|
+
const t = ++Z;
|
|
1078
|
+
se(), await oe(), t === Z && de();
|
|
929
1079
|
}
|
|
930
|
-
),
|
|
931
|
-
|
|
932
|
-
}),
|
|
933
|
-
|
|
934
|
-
}),
|
|
935
|
-
append: (t) =>
|
|
936
|
-
clear: () =>
|
|
937
|
-
focus: () =>
|
|
938
|
-
getMode: () =>
|
|
939
|
-
getValue: () =>
|
|
940
|
-
hasFocus: () =>
|
|
941
|
-
insert:
|
|
942
|
-
isEmpty: () =>
|
|
943
|
-
moveCursor:
|
|
944
|
-
prepend: (t) =>
|
|
945
|
-
replace:
|
|
946
|
-
setMode:
|
|
947
|
-
setValue:
|
|
948
|
-
}), (t,
|
|
1080
|
+
), bt(() => {
|
|
1081
|
+
de(), document.addEventListener("pointerdown", Te), document.addEventListener("keydown", Ee);
|
|
1082
|
+
}), he(() => {
|
|
1083
|
+
se(), document.removeEventListener("pointerdown", Te), document.removeEventListener("keydown", Ee);
|
|
1084
|
+
}), k({
|
|
1085
|
+
append: (t) => te(Ve(O.value, t)),
|
|
1086
|
+
clear: () => te(""),
|
|
1087
|
+
focus: () => l.value === "markup" ? L?.focus() : T?.focus(),
|
|
1088
|
+
getMode: () => l.value,
|
|
1089
|
+
getValue: () => O.value,
|
|
1090
|
+
hasFocus: () => l.value === "markup" ? L?.hasFocus() ?? !1 : T?.hasFocus() ?? !1,
|
|
1091
|
+
insert: Fe,
|
|
1092
|
+
isEmpty: () => O.value.length === 0,
|
|
1093
|
+
moveCursor: ze,
|
|
1094
|
+
prepend: (t) => te(Ve(t, O.value)),
|
|
1095
|
+
replace: te,
|
|
1096
|
+
setMode: be,
|
|
1097
|
+
setValue: te
|
|
1098
|
+
}), (t, n) => (i(), m("section", {
|
|
949
1099
|
class: "markdown-editor",
|
|
950
1100
|
"data-locale": e.locale,
|
|
951
|
-
"data-mode":
|
|
1101
|
+
"data-mode": l.value,
|
|
952
1102
|
"data-theme": e.theme,
|
|
953
|
-
onClick:
|
|
1103
|
+
onClick: Ke
|
|
954
1104
|
}, [
|
|
955
|
-
t.$slots.header ? (
|
|
956
|
-
|
|
957
|
-
])) :
|
|
958
|
-
e.readonly ?
|
|
1105
|
+
t.$slots.header ? (i(), m("header", _a, [
|
|
1106
|
+
we(t.$slots, "header", {}, void 0, !0)
|
|
1107
|
+
])) : $("", !0),
|
|
1108
|
+
e.readonly ? $("", !0) : (i(), le(Ya, {
|
|
959
1109
|
key: 1,
|
|
960
|
-
commands:
|
|
961
|
-
"
|
|
962
|
-
"
|
|
963
|
-
"
|
|
964
|
-
"
|
|
965
|
-
"
|
|
966
|
-
"
|
|
967
|
-
|
|
968
|
-
"
|
|
969
|
-
|
|
970
|
-
"
|
|
1110
|
+
commands: d(u),
|
|
1111
|
+
"background-color-menu-visible": d(W).visible.value,
|
|
1112
|
+
"color-menu-visible": d(Q).visible.value,
|
|
1113
|
+
"code-menu-visible": d(U).visible.value,
|
|
1114
|
+
"formula-menu-visible": d(I).visible.value,
|
|
1115
|
+
"heading-menu-visible": d(G).visible.value,
|
|
1116
|
+
"image-editor-visible": d(q).visible.value,
|
|
1117
|
+
"link-editor-visible": d(A).visible.value,
|
|
1118
|
+
"list-menu-visible": d(K).visible.value,
|
|
1119
|
+
mode: l.value,
|
|
1120
|
+
"mode-menu-visible": d(Y).visible.value,
|
|
1121
|
+
state: E.value,
|
|
1122
|
+
"text-style-label": Ae.value,
|
|
971
1123
|
"toolbar-preset": e.toolbarPreset,
|
|
972
1124
|
"toolbar-config": e.toolbarConfig,
|
|
973
1125
|
features: e.features,
|
|
974
|
-
translate:
|
|
975
|
-
onExecute:
|
|
976
|
-
onInsertHtml:
|
|
977
|
-
onToggleFormulaMenu:
|
|
978
|
-
onToggleCodeMenu:
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
1126
|
+
translate: ve,
|
|
1127
|
+
onExecute: F,
|
|
1128
|
+
onInsertHtml: _e,
|
|
1129
|
+
onToggleFormulaMenu: at,
|
|
1130
|
+
onToggleCodeMenu: Oe,
|
|
1131
|
+
onToggleBackgroundColorMenu: Ue,
|
|
1132
|
+
onToggleColorMenu: je,
|
|
1133
|
+
onToggleHeadingMenu: qe,
|
|
1134
|
+
onToggleImageEditor: Ze,
|
|
1135
|
+
onToggleLinkEditor: Ge,
|
|
1136
|
+
onToggleListMenu: Ye,
|
|
1137
|
+
onToggleModeMenu: Xe
|
|
984
1138
|
}, {
|
|
985
|
-
default:
|
|
986
|
-
|
|
1139
|
+
default: ft((f) => [
|
|
1140
|
+
we(t.$slots, "toolbar", kt(wt(f)), void 0, !0)
|
|
987
1141
|
]),
|
|
988
1142
|
_: 3
|
|
989
|
-
}, 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", "features"])),
|
|
990
|
-
(
|
|
991
|
-
|
|
1143
|
+
}, 8, ["commands", "background-color-menu-visible", "color-menu-visible", "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", "features"])),
|
|
1144
|
+
(i(), le(ht, { to: "body" }, [
|
|
1145
|
+
C(ka, {
|
|
992
1146
|
ref_key: "floatingMenus",
|
|
993
|
-
ref:
|
|
994
|
-
"code-visible":
|
|
995
|
-
"
|
|
996
|
-
"
|
|
997
|
-
"
|
|
998
|
-
|
|
999
|
-
"
|
|
1000
|
-
|
|
1001
|
-
"
|
|
1147
|
+
ref: D,
|
|
1148
|
+
"code-visible": d(U).visible.value,
|
|
1149
|
+
"background-color-visible": d(W).visible.value,
|
|
1150
|
+
"color-visible": d(Q).visible.value,
|
|
1151
|
+
"formula-visible": d(I).visible.value,
|
|
1152
|
+
"heading-visible": d(G).visible.value,
|
|
1153
|
+
"list-visible": d(K).visible.value,
|
|
1154
|
+
mode: l.value,
|
|
1155
|
+
"mode-visible": d(Y).visible.value,
|
|
1156
|
+
state: E.value,
|
|
1157
|
+
"text-style": me.value,
|
|
1002
1158
|
theme: e.theme,
|
|
1003
|
-
translate:
|
|
1004
|
-
onBulletList:
|
|
1005
|
-
onCodeBlock:
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1015
|
-
|
|
1159
|
+
translate: ve,
|
|
1160
|
+
onBulletList: n[0] || (n[0] = (f) => re(d(u).bulletList, "bulletList")),
|
|
1161
|
+
onCodeBlock: n[1] || (n[1] = (f) => xe(d(u).codeBlock, "codeBlock")),
|
|
1162
|
+
onSelectBackgroundColor: We,
|
|
1163
|
+
onSelectColor: Qe,
|
|
1164
|
+
onIndentList: n[2] || (n[2] = (f) => re(d(u).sinkListItem, "indentList")),
|
|
1165
|
+
onInlineCode: n[3] || (n[3] = (f) => xe(d(u).code, "code")),
|
|
1166
|
+
onInlineFormula: tt,
|
|
1167
|
+
onMathBlock: et,
|
|
1168
|
+
onOrderedList: n[4] || (n[4] = (f) => re(d(u).orderedList, "orderedList")),
|
|
1169
|
+
onOutdentList: n[5] || (n[5] = (f) => re(d(u).liftListItem, "outdentList")),
|
|
1170
|
+
onSelectMode: Je,
|
|
1171
|
+
onSelectTextStyle: Ie
|
|
1172
|
+
}, null, 8, ["code-visible", "background-color-visible", "color-visible", "formula-visible", "heading-visible", "list-visible", "mode", "mode-visible", "state", "text-style", "theme"]),
|
|
1173
|
+
d(A).visible.value ? (i(), le(Ht, {
|
|
1016
1174
|
key: 0,
|
|
1017
1175
|
ref_key: "linkForm",
|
|
1018
|
-
ref:
|
|
1019
|
-
"has-current-link":
|
|
1176
|
+
ref: ye,
|
|
1177
|
+
"has-current-link": E.value.linkHref !== void 0,
|
|
1020
1178
|
locale: e.locale,
|
|
1021
|
-
"open-in-new-window":
|
|
1179
|
+
"open-in-new-window": j.value,
|
|
1022
1180
|
theme: e.theme,
|
|
1023
|
-
text:
|
|
1024
|
-
url:
|
|
1025
|
-
onApply:
|
|
1026
|
-
onCancel:
|
|
1027
|
-
onRemove:
|
|
1028
|
-
"onUpdate:text":
|
|
1029
|
-
"onUpdate:url":
|
|
1030
|
-
"onUpdate:openInNewWindow":
|
|
1031
|
-
}, null, 8, ["has-current-link", "locale", "open-in-new-window", "theme", "text", "url"])) :
|
|
1032
|
-
|
|
1181
|
+
text: _.value,
|
|
1182
|
+
url: S.value,
|
|
1183
|
+
onApply: Ne,
|
|
1184
|
+
onCancel: pe,
|
|
1185
|
+
onRemove: n[6] || (n[6] = (f) => F(void 0, d(u).removeLink)),
|
|
1186
|
+
"onUpdate:text": n[7] || (n[7] = (f) => _.value = f),
|
|
1187
|
+
"onUpdate:url": n[8] || (n[8] = (f) => S.value = f),
|
|
1188
|
+
"onUpdate:openInNewWindow": n[9] || (n[9] = (f) => j.value = f)
|
|
1189
|
+
}, null, 8, ["has-current-link", "locale", "open-in-new-window", "theme", "text", "url"])) : $("", !0),
|
|
1190
|
+
d(q).visible.value ? (i(), le(Vt, {
|
|
1033
1191
|
key: 1,
|
|
1034
1192
|
ref_key: "imageForm",
|
|
1035
|
-
ref:
|
|
1036
|
-
alt:
|
|
1193
|
+
ref: b,
|
|
1194
|
+
alt: V.value,
|
|
1037
1195
|
locale: e.locale,
|
|
1038
1196
|
theme: e.theme,
|
|
1039
|
-
title:
|
|
1197
|
+
title: o.value,
|
|
1040
1198
|
"upload-image": e.uploadImage,
|
|
1041
|
-
url:
|
|
1042
|
-
onApply:
|
|
1043
|
-
onCancel:
|
|
1044
|
-
"onUpdate:alt":
|
|
1045
|
-
"onUpdate:title":
|
|
1046
|
-
"onUpdate:url":
|
|
1047
|
-
}, null, 8, ["alt", "locale", "theme", "title", "upload-image", "url"])) :
|
|
1048
|
-
|
|
1199
|
+
url: v.value,
|
|
1200
|
+
onApply: De,
|
|
1201
|
+
onCancel: Re,
|
|
1202
|
+
"onUpdate:alt": n[10] || (n[10] = (f) => V.value = f),
|
|
1203
|
+
"onUpdate:title": n[11] || (n[11] = (f) => o.value = f),
|
|
1204
|
+
"onUpdate:url": n[12] || (n[12] = (f) => v.value = f)
|
|
1205
|
+
}, null, 8, ["alt", "locale", "theme", "title", "upload-image", "url"])) : $("", !0),
|
|
1206
|
+
d(ee).visible.value ? (i(), le(Ma, {
|
|
1049
1207
|
key: 2,
|
|
1050
1208
|
ref_key: "imageActions",
|
|
1051
|
-
ref:
|
|
1052
|
-
"object-fit":
|
|
1209
|
+
ref: Ce,
|
|
1210
|
+
"object-fit": E.value.imageObjectFit,
|
|
1053
1211
|
theme: e.theme,
|
|
1054
|
-
translate:
|
|
1055
|
-
onFullWidth:
|
|
1056
|
-
onObjectFit:
|
|
1057
|
-
}, null, 8, ["object-fit", "theme"])) :
|
|
1212
|
+
translate: ve,
|
|
1213
|
+
onFullWidth: n[13] || (n[13] = (f) => Be(d(u).setImageDisplay("100%", "contain", null))),
|
|
1214
|
+
onObjectFit: n[14] || (n[14] = (f) => Be(d(u).setImageDisplay(void 0, f)))
|
|
1215
|
+
}, null, 8, ["object-fit", "theme"])) : $("", !0)
|
|
1058
1216
|
])),
|
|
1059
1217
|
g("div", {
|
|
1060
|
-
class:
|
|
1218
|
+
class: yt(["markdown-editor__hosts", { "markdown-editor__hosts--split": l.value === "split" }])
|
|
1061
1219
|
}, [
|
|
1062
|
-
|
|
1220
|
+
l.value !== "markup" ? (i(), m("div", {
|
|
1063
1221
|
key: 0,
|
|
1064
1222
|
ref_key: "visualTarget",
|
|
1065
|
-
ref:
|
|
1223
|
+
ref: M,
|
|
1066
1224
|
class: "markdown-editor__visual"
|
|
1067
|
-
}, null, 512)) :
|
|
1068
|
-
|
|
1225
|
+
}, null, 512)) : $("", !0),
|
|
1226
|
+
l.value !== "wysiwyg" ? (i(), m("div", {
|
|
1069
1227
|
key: 1,
|
|
1070
1228
|
ref_key: "markupTarget",
|
|
1071
1229
|
ref: a,
|
|
1072
1230
|
class: "markdown-editor__markup"
|
|
1073
|
-
}, null, 512)) :
|
|
1231
|
+
}, null, 512)) : $("", !0)
|
|
1074
1232
|
], 2)
|
|
1075
|
-
], 8,
|
|
1233
|
+
], 8, Ja));
|
|
1076
1234
|
}
|
|
1077
|
-
}),
|
|
1078
|
-
function
|
|
1079
|
-
const
|
|
1080
|
-
return
|
|
1081
|
-
|
|
1082
|
-
}),
|
|
1083
|
-
|
|
1084
|
-
}),
|
|
1085
|
-
|
|
1086
|
-
}),
|
|
1087
|
-
|
|
1088
|
-
}),
|
|
1089
|
-
destroy:
|
|
1090
|
-
editor:
|
|
1091
|
-
mode:
|
|
1092
|
-
readonly:
|
|
1093
|
-
toolbarVisible:
|
|
1094
|
-
value:
|
|
1235
|
+
}), ul = /* @__PURE__ */ ie(el, [["__scopeId", "data-v-623bd764"]]);
|
|
1236
|
+
function ml(e = {}) {
|
|
1237
|
+
const k = rt(e), x = y(k.getValue()), c = y(k.getMode()), w = y(k.readonly), u = y(k.toolbarVisible), r = () => k.destroy();
|
|
1238
|
+
return k.on("change", (s) => {
|
|
1239
|
+
x.value = s;
|
|
1240
|
+
}), k.on("modeChange", (s) => {
|
|
1241
|
+
c.value = s;
|
|
1242
|
+
}), k.on("changeReadonly", ({ readonly: s }) => {
|
|
1243
|
+
w.value = s;
|
|
1244
|
+
}), k.on("changeToolbarVisibility", ({ visible: s }) => {
|
|
1245
|
+
u.value = s;
|
|
1246
|
+
}), Se() !== null && he(r), {
|
|
1247
|
+
destroy: r,
|
|
1248
|
+
editor: k,
|
|
1249
|
+
mode: ue(c),
|
|
1250
|
+
readonly: ue(w),
|
|
1251
|
+
toolbarVisible: ue(u),
|
|
1252
|
+
value: ue(x)
|
|
1095
1253
|
};
|
|
1096
1254
|
}
|
|
1097
1255
|
export {
|
|
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
|
-
|
|
1293
|
-
|
|
1294
|
-
|
|
1295
|
-
|
|
1296
|
-
|
|
1297
|
-
|
|
1298
|
-
|
|
1299
|
-
|
|
1300
|
-
|
|
1301
|
-
|
|
1302
|
-
|
|
1303
|
-
|
|
1304
|
-
|
|
1305
|
-
|
|
1306
|
-
|
|
1307
|
-
|
|
1308
|
-
|
|
1309
|
-
|
|
1310
|
-
|
|
1311
|
-
|
|
1312
|
-
|
|
1313
|
-
|
|
1314
|
-
|
|
1315
|
-
|
|
1316
|
-
|
|
1317
|
-
|
|
1318
|
-
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
|
|
1322
|
-
|
|
1323
|
-
|
|
1324
|
-
|
|
1256
|
+
pl as ActionsManager,
|
|
1257
|
+
Gl as BaseInputRules,
|
|
1258
|
+
Kl as BaseKeymap,
|
|
1259
|
+
Yl as BaseSchema,
|
|
1260
|
+
Zl as Blockquote,
|
|
1261
|
+
Ui as BlockquoteSpecs,
|
|
1262
|
+
Xl as Bold,
|
|
1263
|
+
Wi as BoldAttrs,
|
|
1264
|
+
Qi as BoldSpecs,
|
|
1265
|
+
Gi as BreakNodeName,
|
|
1266
|
+
Jl as Breaks,
|
|
1267
|
+
Ki as BreaksSpecs,
|
|
1268
|
+
_l as ClicksOnEdges,
|
|
1269
|
+
eo as Clipboard,
|
|
1270
|
+
to as Code,
|
|
1271
|
+
ao as CodeBlock,
|
|
1272
|
+
Yi as CodeBlockAttrs,
|
|
1273
|
+
Zi as CodeBlockSpecs,
|
|
1274
|
+
Xi as CodeSpecs,
|
|
1275
|
+
Fi as CommonMarkPreset,
|
|
1276
|
+
qi as CommonMarkSpecsPreset,
|
|
1277
|
+
lo as Cursor,
|
|
1278
|
+
Ni as DefaultPreset,
|
|
1279
|
+
oo as Deflist,
|
|
1280
|
+
Ji as DeflistAttr,
|
|
1281
|
+
_i as DeflistNode,
|
|
1282
|
+
es as DeflistSpecs,
|
|
1283
|
+
no as EditorModeKeymap,
|
|
1284
|
+
xl as EventEmitter,
|
|
1285
|
+
Ll as ExtensionBuilder,
|
|
1286
|
+
Bl as ExtensionPriority,
|
|
1287
|
+
Tl as ExtensionsManager,
|
|
1288
|
+
Di as FullPreset,
|
|
1289
|
+
Oi as FullSpecsPreset,
|
|
1290
|
+
io as GapCursorSelection,
|
|
1291
|
+
so as Heading,
|
|
1292
|
+
ts as HeadingSpecs,
|
|
1293
|
+
ro as History,
|
|
1294
|
+
uo as HistoryAction,
|
|
1295
|
+
mo as HorizontalRule,
|
|
1296
|
+
as as HorizontalRuleSpecs,
|
|
1297
|
+
co as Html,
|
|
1298
|
+
go as HtmlAttr,
|
|
1299
|
+
vo as HtmlNode,
|
|
1300
|
+
bo as Image,
|
|
1301
|
+
fo as ImageAttr,
|
|
1302
|
+
ko as Italic,
|
|
1303
|
+
ls as ItalicAttrs,
|
|
1304
|
+
os as ItalicSpecs,
|
|
1305
|
+
vl as Lang,
|
|
1306
|
+
wo as Link,
|
|
1307
|
+
ns as LinkAttr,
|
|
1308
|
+
is as LinkSpecs,
|
|
1309
|
+
ho as Lists,
|
|
1310
|
+
El as Logger,
|
|
1311
|
+
$l as Logger2,
|
|
1312
|
+
yo as Mark,
|
|
1313
|
+
Hl as MarkdownCodec,
|
|
1314
|
+
ul as MarkdownEditor,
|
|
1315
|
+
Ai as MarkdownEditorForm,
|
|
1316
|
+
Vt as MarkdownEditorImageForm,
|
|
1317
|
+
Ht as MarkdownEditorLinkForm,
|
|
1318
|
+
Pi as MarkdownEditorTextInput,
|
|
1319
|
+
Vl as MarkdownParser,
|
|
1320
|
+
Sl as MarkdownParserDynamicModifier,
|
|
1321
|
+
Co as Mermaid,
|
|
1322
|
+
Al as ParserTokenRegistry,
|
|
1323
|
+
Pl as ParserTokensRegistry,
|
|
1324
|
+
Mo as Placeholder,
|
|
1325
|
+
po as QuoteLink,
|
|
1326
|
+
xo as Resizable,
|
|
1327
|
+
zl as SafeEventEmitter,
|
|
1328
|
+
Fl as SchemaDynamicModifier,
|
|
1329
|
+
Nl as SchemaSpecRegistry,
|
|
1330
|
+
Lo as Selection,
|
|
1331
|
+
Bo as SelectionContext,
|
|
1332
|
+
Dl as SerializerTokenRegistry,
|
|
1333
|
+
Rl as SerializerTokensRegistry,
|
|
1334
|
+
To as Strike,
|
|
1335
|
+
Eo as Table,
|
|
1336
|
+
ss as TableAttrs,
|
|
1337
|
+
rs as TableCellAlign,
|
|
1338
|
+
ds as TableNode,
|
|
1339
|
+
us as TableSpecs,
|
|
1340
|
+
$o as Underline,
|
|
1341
|
+
Ho as VERSION,
|
|
1342
|
+
Il as WysiwygContentHandler,
|
|
1343
|
+
Vo as YfmHtmlBlock,
|
|
1344
|
+
Ri as ZeroPreset,
|
|
1345
|
+
So as addBreak,
|
|
1346
|
+
Ao as addEmptyDefaultTextblockToEndOfDocumentActionName,
|
|
1347
|
+
Po as addEmptyDefaultTextblockToStartOfDocumentActionName,
|
|
1348
|
+
zo as addHorizontalRule,
|
|
1349
|
+
Fo as addImage,
|
|
1350
|
+
No as addParagraphToEnd,
|
|
1351
|
+
Do as addParagraphToStart,
|
|
1352
|
+
Ro as addTableColumn,
|
|
1353
|
+
Io as addTableRow,
|
|
1354
|
+
qo as arrowDown,
|
|
1355
|
+
Oo as arrowLeft,
|
|
1356
|
+
jo as arrowRight,
|
|
1357
|
+
Uo as arrowUp,
|
|
1358
|
+
ql as basicMarkdownCodec,
|
|
1359
|
+
Ol as basicMarkdownSchema,
|
|
1360
|
+
ms as blockquoteNodeName,
|
|
1361
|
+
cs as boldMarkName,
|
|
1362
|
+
hl as cn,
|
|
1363
|
+
gs as codeBlockNodeName,
|
|
1364
|
+
vs as codeMarkName,
|
|
1365
|
+
Wo as collapseListsPlugin,
|
|
1366
|
+
pi as commonmarkToolbarConfig,
|
|
1367
|
+
bl as configure,
|
|
1368
|
+
ot as createBasicEditorCommands,
|
|
1369
|
+
st as createBasicMarkupCommands,
|
|
1370
|
+
Qo as createFakeParagraph,
|
|
1371
|
+
Go as createGapCursorPlugin,
|
|
1372
|
+
Ko as createHistoryActions,
|
|
1373
|
+
Yo as createListActions,
|
|
1374
|
+
Zo as createListsInputRules,
|
|
1375
|
+
Xo as createListsKeymap,
|
|
1376
|
+
rt as createMarkdownEditor,
|
|
1377
|
+
Jo as createTable,
|
|
1378
|
+
xi as createToolbarConfig,
|
|
1379
|
+
Li as createToolbarGroup,
|
|
1380
|
+
Bi as createToolbarItem,
|
|
1381
|
+
_o as createVueContextPanelPlugin,
|
|
1382
|
+
en as createVueNodeView,
|
|
1383
|
+
tn as createVueWidgetDecoration,
|
|
1384
|
+
jl as defaultMarkdownSchema,
|
|
1385
|
+
an as defaultMermaidSource,
|
|
1386
|
+
Ti as defaultToolbarConfig,
|
|
1387
|
+
ln as defaultYfmHtml,
|
|
1388
|
+
on as deleteTable,
|
|
1389
|
+
nn as deleteTableColumn,
|
|
1390
|
+
sn as deleteTableRow,
|
|
1391
|
+
rn as findFakeParaPosClosestToPos,
|
|
1392
|
+
dn as findFakeParaPosForCodeBlock,
|
|
1393
|
+
un as findFakeParaPosForNodeSelection,
|
|
1394
|
+
mn as findFakeParaPosForTextSelection,
|
|
1395
|
+
Ei as fullToolbarConfig,
|
|
1396
|
+
cn as gapCursorBackspace,
|
|
1397
|
+
Ul as getBasicWysiwygSelectionState,
|
|
1398
|
+
gn as getBlockquoteType,
|
|
1399
|
+
vn as getBoldType,
|
|
1400
|
+
bn as getCodeBlockType,
|
|
1401
|
+
fn as getCodeType,
|
|
1402
|
+
fl as getConfig,
|
|
1403
|
+
kn as getCurrentLink,
|
|
1404
|
+
wn as getDeflistTypes,
|
|
1405
|
+
hn as getHeadingType,
|
|
1406
|
+
yn as getHorizontalRuleType,
|
|
1407
|
+
Cn as getImageType,
|
|
1408
|
+
Mn as getItalicType,
|
|
1409
|
+
pn as getLinkType,
|
|
1410
|
+
xn as getMarkType,
|
|
1411
|
+
lt as getMarkdownEditorMessages,
|
|
1412
|
+
Ln as getQuoteLinkType,
|
|
1413
|
+
Bn as getStrikeType,
|
|
1414
|
+
Tt as getToolbarConfig,
|
|
1415
|
+
Tn as getUnderlineType,
|
|
1416
|
+
En as goToTableCell,
|
|
1417
|
+
bs as headingLevelAttr,
|
|
1418
|
+
fs as headingNodeName,
|
|
1419
|
+
$n as hierarchicalSelectAll,
|
|
1420
|
+
ks as horizontalRuleMarkupAttr,
|
|
1421
|
+
ws as horizontalRuleNodeName,
|
|
1422
|
+
Hn as imageNodeName,
|
|
1423
|
+
Vn as imageObjectFitValues,
|
|
1424
|
+
Sn as insertMermaid,
|
|
1425
|
+
An as insertTable,
|
|
1426
|
+
Pn as insertYfmHtmlBlock,
|
|
1427
|
+
zn as isBreakNode,
|
|
1428
|
+
Fn as isGapCursorSelection,
|
|
1429
|
+
Nn as isInsideCode,
|
|
1430
|
+
X as isToolbarItemActive,
|
|
1431
|
+
$t as isToolbarItemAvailable,
|
|
1432
|
+
N as isToolbarItemEnabled,
|
|
1433
|
+
hs as italicMarkName,
|
|
1434
|
+
Dn as joinPrevList,
|
|
1435
|
+
Rn as liftEmptyListItem,
|
|
1436
|
+
In as liftFromQuote,
|
|
1437
|
+
ys as linkMarkName,
|
|
1438
|
+
qn as markMarkName,
|
|
1439
|
+
Cl as markdownEditorMessages,
|
|
1440
|
+
$i as markdownEditorToolbarItemIds,
|
|
1441
|
+
On as mergeListsPlugin,
|
|
1442
|
+
jn as mermaidActionName,
|
|
1443
|
+
Un as mermaidNodeName,
|
|
1444
|
+
Hi as minimalToolbarConfig,
|
|
1445
|
+
it as mountBasicMarkupEditor,
|
|
1446
|
+
nt as mountBasicWysiwygEditor,
|
|
1447
|
+
Wn as moveToNextTableRow,
|
|
1448
|
+
Qn as newlineInCode,
|
|
1449
|
+
Et as normalizeToolbarItem,
|
|
1450
|
+
Gn as quoteLinkActionName,
|
|
1451
|
+
Kn as quoteLinkNodeName,
|
|
1452
|
+
Yn as removeCurrentLink,
|
|
1453
|
+
Zn as removeLink,
|
|
1454
|
+
Wl as renderMarkdownPreview,
|
|
1455
|
+
Xn as resetCodeBlock,
|
|
1456
|
+
Jn as resetHeading,
|
|
1457
|
+
_n as setCodeBlock,
|
|
1458
|
+
ei as setCodeBlockLanguage,
|
|
1459
|
+
ti as setImageDisplay,
|
|
1460
|
+
ai as setLink,
|
|
1461
|
+
li as setTableColumnAlignment,
|
|
1462
|
+
oi as sinkOnlySelectedListItem,
|
|
1463
|
+
ni as splitDeflist,
|
|
1464
|
+
ii as strikeMarkName,
|
|
1465
|
+
kl as subscribeConfigure,
|
|
1466
|
+
si as toHeading,
|
|
1467
|
+
ri as toList,
|
|
1468
|
+
di as toggleBold,
|
|
1469
|
+
ui as toggleCode,
|
|
1470
|
+
mi as toggleHighlight,
|
|
1471
|
+
ci as toggleItalic,
|
|
1472
|
+
gi as toggleLink,
|
|
1473
|
+
vi as toggleQuote,
|
|
1474
|
+
bi as toggleQuoteLink,
|
|
1475
|
+
fi as toggleStrike,
|
|
1476
|
+
ki as toggleUnderline,
|
|
1477
|
+
wi as underlineMarkName,
|
|
1478
|
+
ml as useMarkdownEditor,
|
|
1479
|
+
hi as wrapToDeflist,
|
|
1480
|
+
yi as yfmHtmlBlockActionName,
|
|
1481
|
+
Ci as yfmHtmlBlockNodeName,
|
|
1482
|
+
Vi as zeroToolbarConfig
|
|
1325
1483
|
};
|