md-editor-v3 4.8.1 → 4.8.2

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.
@@ -17,7 +17,7 @@ import { deleteLine as rl, indentWithTab as sl, undo as cl, redo as ul } from "@
17
17
  import { HighlightStyle as Bt, syntaxHighlighting as Ot, indentUnit as dl } from "@codemirror/language";
18
18
  import { tags as c } from "@lezer/highlight";
19
19
  import { autocompletion as ml } from "@codemirror/autocomplete";
20
- import { c as gl, C as fl, e as hl, a as bl, u as vl, b as kl, d as Cl, f as pl, g as $l, h as yl, i as Tl, M as wl } from "./chunks/index.mjs";
20
+ import { c as gl, C as fl, e as hl, a as bl, u as vl, b as kl, d as Cl, f as $l, g as pl, h as yl, i as Tl, M as wl } from "./chunks/index.mjs";
21
21
  import Vt from "./MdCatalog.mjs";
22
22
  import { g as ft } from "./chunks/vue-tsx.mjs";
23
23
  import xl from "./NormalToolbar.mjs";
@@ -432,8 +432,8 @@ const Al = /* @__PURE__ */ P({
432
432
  // mermaid
433
433
  mermaid: !1,
434
434
  katex: !1
435
- }), s = (b, p) => {
436
- v.emit(o, x, b, p);
435
+ }), s = (b, $) => {
436
+ v.emit(o, x, b, $);
437
437
  }, h = G({
438
438
  type: "link",
439
439
  linkVisible: !1,
@@ -448,7 +448,7 @@ const Al = /* @__PURE__ */ P({
448
448
  });
449
449
  });
450
450
  const C = we(() => {
451
- const b = e.toolbars.filter((I) => !e.toolbarsExclude.includes(I)), p = b.indexOf("="), T = p === -1 ? b : b.slice(0, p + 1), S = p === -1 ? [] : b.slice(p, Number.MAX_SAFE_INTEGER);
451
+ const b = e.toolbars.filter((I) => !e.toolbarsExclude.includes(I)), $ = b.indexOf("="), T = $ === -1 ? b : b.slice(0, $ + 1), S = $ === -1 ? [] : b.slice($, Number.MAX_SAFE_INTEGER);
452
452
  return [T, S];
453
453
  }), d = U(), k = () => {
454
454
  v.emit(o, xe, Array.from(d.value.files || [])), d.value.value = "";
@@ -457,7 +457,7 @@ const Al = /* @__PURE__ */ P({
457
457
  d.value.addEventListener("change", k);
458
458
  });
459
459
  const f = (b) => {
460
- var p, T, S, I, D, oe, ae, M, L, _, W, O, N, B, V, K, j, de, ne, J, Z, ie, X, F, R, re, me, Ae, Me, Le, Ie, De, Ee, He, Ne, Be, Oe, Ve, Fe, Re, Pe, We, Ue, _e, qe, ze, Ge, Ke, je, Ze, Xe, Ye, Je, Qe, et, tt, lt, ot, at, nt, it, rt, st, ct, ut, dt, mt;
460
+ var $, T, S, I, D, oe, ae, M, L, _, W, O, N, B, V, K, j, de, ne, J, Z, ie, X, F, R, re, me, Ae, Me, Le, Ie, De, Ee, He, Ne, Be, Oe, Ve, Fe, Re, Pe, We, Ue, _e, qe, ze, Ge, Ke, je, Ze, Xe, Ye, Je, Qe, et, tt, lt, ot, at, nt, it, rt, st, ct, ut, dt, mt;
461
461
  if (Ut.includes(b))
462
462
  switch (b) {
463
463
  case "-":
@@ -465,7 +465,7 @@ const Al = /* @__PURE__ */ P({
465
465
  case "bold":
466
466
  return t("div", {
467
467
  class: `${n}-toolbar-item`,
468
- title: (p = l.value.toolbarTips) == null ? void 0 : p.bold,
468
+ title: ($ = l.value.toolbarTips) == null ? void 0 : $.bold,
469
469
  onClick: () => {
470
470
  s("bold");
471
471
  }
@@ -514,8 +514,8 @@ const Al = /* @__PURE__ */ P({
514
514
  return t(se, {
515
515
  relative: `#${m}`,
516
516
  visible: u.title,
517
- onChange: ($) => {
518
- u.title = $;
517
+ onChange: (p) => {
518
+ u.title = p;
519
519
  },
520
520
  overlay: t("ul", {
521
521
  class: `${n}-menu`,
@@ -555,10 +555,10 @@ const Al = /* @__PURE__ */ P({
555
555
  }, [(B = l.value.titleItem) == null ? void 0 : B.h6])])
556
556
  }, {
557
557
  default: () => {
558
- var $, E;
558
+ var p, E;
559
559
  return [t("div", {
560
560
  class: `${n}-toolbar-item`,
561
- title: ($ = l.value.toolbarTips) == null ? void 0 : $.title
561
+ title: (p = l.value.toolbarTips) == null ? void 0 : p.title
562
562
  }, [t(y, {
563
563
  name: "title"
564
564
  }, null), e.showToolbarName && t("div", {
@@ -688,8 +688,8 @@ const Al = /* @__PURE__ */ P({
688
688
  }, [(He = l.value.toolbarTips) == null ? void 0 : He.image])]) : t(se, {
689
689
  relative: `#${m}`,
690
690
  visible: u.image,
691
- onChange: ($) => {
692
- u.image = $;
691
+ onChange: (p) => {
692
+ u.image = p;
693
693
  },
694
694
  overlay: t("ul", {
695
695
  class: `${n}-menu`,
@@ -714,10 +714,10 @@ const Al = /* @__PURE__ */ P({
714
714
  }, [(Oe = l.value.imgTitleItem) == null ? void 0 : Oe.clip2upload])])
715
715
  }, {
716
716
  default: () => {
717
- var $, E;
717
+ var p, E;
718
718
  return [t("div", {
719
719
  class: `${n}-toolbar-item`,
720
- title: ($ = l.value.toolbarTips) == null ? void 0 : $.image
720
+ title: (p = l.value.toolbarTips) == null ? void 0 : p.image
721
721
  }, [t(y, {
722
722
  name: "image"
723
723
  }, null), e.showToolbarName && t("div", {
@@ -729,24 +729,24 @@ const Al = /* @__PURE__ */ P({
729
729
  return t(se, {
730
730
  relative: `#${m}`,
731
731
  visible: u.table,
732
- onChange: ($) => {
733
- u.table = $;
732
+ onChange: (p) => {
733
+ u.table = p;
734
734
  },
735
735
  key: "bar-table",
736
736
  overlay: t(El, {
737
737
  tableShape: e.tableShape,
738
- onSelected: ($) => {
738
+ onSelected: (p) => {
739
739
  s("table", {
740
- selectedShape: $
740
+ selectedShape: p
741
741
  });
742
742
  }
743
743
  }, null)
744
744
  }, {
745
745
  default: () => {
746
- var $, E;
746
+ var p, E;
747
747
  return [t("div", {
748
748
  class: `${n}-toolbar-item`,
749
- title: ($ = l.value.toolbarTips) == null ? void 0 : $.table
749
+ title: (p = l.value.toolbarTips) == null ? void 0 : p.table
750
750
  }, [t(y, {
751
751
  name: "table"
752
752
  }, null), e.showToolbarName && t("div", {
@@ -877,8 +877,8 @@ const Al = /* @__PURE__ */ P({
877
877
  return t(se, {
878
878
  relative: `#${m}`,
879
879
  visible: u.mermaid,
880
- onChange: ($) => {
881
- u.mermaid = $;
880
+ onChange: (p) => {
881
+ u.mermaid = p;
882
882
  },
883
883
  overlay: t("ul", {
884
884
  class: `${n}-menu`,
@@ -929,10 +929,10 @@ const Al = /* @__PURE__ */ P({
929
929
  key: "bar-mermaid"
930
930
  }, {
931
931
  default: () => {
932
- var $, E;
932
+ var p, E;
933
933
  return [t("div", {
934
934
  class: `${n}-toolbar-item`,
935
- title: ($ = l.value.toolbarTips) == null ? void 0 : $.mermaid
935
+ title: (p = l.value.toolbarTips) == null ? void 0 : p.mermaid
936
936
  }, [t(y, {
937
937
  name: "mermaid"
938
938
  }, null), e.showToolbarName && t("div", {
@@ -944,8 +944,8 @@ const Al = /* @__PURE__ */ P({
944
944
  return t(se, {
945
945
  relative: `#${m}`,
946
946
  visible: u.katex,
947
- onChange: ($) => {
948
- u.katex = $;
947
+ onChange: (p) => {
948
+ u.katex = p;
949
949
  },
950
950
  overlay: t("ul", {
951
951
  class: `${n}-menu`,
@@ -966,10 +966,10 @@ const Al = /* @__PURE__ */ P({
966
966
  key: "bar-katex"
967
967
  }, {
968
968
  default: () => {
969
- var $, E;
969
+ var p, E;
970
970
  return [t("div", {
971
971
  class: `${n}-toolbar-item`,
972
- title: ($ = l.value.toolbarTips) == null ? void 0 : $.katex
972
+ title: (p = l.value.toolbarTips) == null ? void 0 : p.katex
973
973
  }, [t(y, {
974
974
  name: "formula"
975
975
  }, null), e.showToolbarName && t("div", {
@@ -979,8 +979,8 @@ const Al = /* @__PURE__ */ P({
979
979
  });
980
980
  }
981
981
  else if (e.defToolbars instanceof Array) {
982
- const $ = e.defToolbars[b];
983
- return $ ? gt($, {
982
+ const p = e.defToolbars[b];
983
+ return p ? gt(p, {
984
984
  theme: a.value,
985
985
  language: i.value,
986
986
  insert(ke) {
@@ -990,8 +990,8 @@ const Al = /* @__PURE__ */ P({
990
990
  }
991
991
  }) : "";
992
992
  } else if (e.defToolbars && e.defToolbars.children instanceof Array) {
993
- const $ = e.defToolbars.children[b];
994
- return $ ? gt($, {
993
+ const p = e.defToolbars.children[b];
994
+ return p ? gt(p, {
995
995
  theme: a.value,
996
996
  language: i.value,
997
997
  insert(ke) {
@@ -1010,7 +1010,7 @@ const Al = /* @__PURE__ */ P({
1010
1010
  }, {
1011
1011
  immediate: !0
1012
1012
  }), () => {
1013
- const b = C.value[0].map((T) => f(T)), p = C.value[1].map((T) => f(T));
1013
+ const b = C.value[0].map((T) => f(T)), $ = C.value[1].map((T) => f(T));
1014
1014
  return t(Lt, null, [e.toolbars.length > 0 && t("div", {
1015
1015
  class: `${n}-toolbar-wrapper`,
1016
1016
  ref: g,
@@ -1022,7 +1022,7 @@ const Al = /* @__PURE__ */ P({
1022
1022
  ref: w
1023
1023
  }, [b]), t("div", {
1024
1024
  class: `${n}-toolbar-right`
1025
- }, [p])])]), t("input", {
1025
+ }, [$])])]), t("input", {
1026
1026
  ref: d,
1027
1027
  accept: "image/*",
1028
1028
  type: "file",
@@ -1086,8 +1086,8 @@ const Al = /* @__PURE__ */ P({
1086
1086
  };
1087
1087
  let s = 0, h = 0;
1088
1088
  const w = jt((C) => {
1089
- var p, T, S, I, D, oe, ae;
1090
- if (!((p = o.firstElementChild) != null && p.firstElementChild))
1089
+ var $, T, S, I, D, oe, ae;
1090
+ if (!(($ = o.firstElementChild) != null && $.firstElementChild))
1091
1091
  return;
1092
1092
  const d = a.lineBlockAtHeight(a.scrollDOM.scrollTop), { number: k } = a.state.doc.lineAt(d.from);
1093
1093
  if (k > g.length || a.state.doc.lines < g[g.length - 1].end)
@@ -1217,18 +1217,18 @@ const Al = /* @__PURE__ */ P({
1217
1217
  let a = "", i = 0, r = 0, m = !0, g = !1;
1218
1218
  const u = o.getSelectedText(), s = (h = Q.editorConfig) == null ? void 0 : h.mermaidTemplate;
1219
1219
  if (/^h[1-6]{1}$/.test(e)) {
1220
- const b = e.replace(/^h(\d)/, (p, T) => new Array(Number(T)).fill("#", 0, T).join(""));
1220
+ const b = e.replace(/^h(\d)/, ($, T) => new Array(Number(T)).fill("#", 0, T).join(""));
1221
1221
  a = `${b} ${u}`, i = b.length + 1;
1222
1222
  } else if (e === "prettier") {
1223
- const b = window.prettier || ((C = (w = Q.editorExtensions) == null ? void 0 : w.prettier) == null ? void 0 : C.prettierInstance), p = [
1223
+ const b = window.prettier || ((C = (w = Q.editorExtensions) == null ? void 0 : w.prettier) == null ? void 0 : C.prettierInstance), $ = [
1224
1224
  ((d = window.prettierPlugins) == null ? void 0 : d.markdown) || ((f = (k = Q.editorExtensions) == null ? void 0 : k.prettier) == null ? void 0 : f.parserMarkdownInstance)
1225
1225
  ];
1226
- !b || p[0] === void 0 ? (v.emit(l.editorId, le, {
1226
+ !b || $[0] === void 0 ? (v.emit(l.editorId, le, {
1227
1227
  name: "prettier",
1228
1228
  message: "prettier is undefined"
1229
1229
  }), a = o.getValue()) : a = b.format(o.getValue(), {
1230
1230
  parser: "markdown",
1231
- plugins: p
1231
+ plugins: $
1232
1232
  }), m = !1, g = !0;
1233
1233
  } else
1234
1234
  switch (e) {
@@ -1277,23 +1277,23 @@ const Al = /* @__PURE__ */ P({
1277
1277
  break;
1278
1278
  }
1279
1279
  case "code": {
1280
- const b = l.text || u || "", p = l.mode || "language";
1281
- a = `\`\`\`${p}
1280
+ const b = l.text || u || "", $ = l.mode || "language";
1281
+ a = `\`\`\`${$}
1282
1282
  ${b}
1283
1283
  \`\`\`
1284
- `, i = 3, r = 3 + p.length - a.length;
1284
+ `, i = 3, r = 3 + $.length - a.length;
1285
1285
  break;
1286
1286
  }
1287
1287
  case "table": {
1288
1288
  a = "|";
1289
- const { selectedShape: b = { x: 1, y: 1 } } = l, { x: p, y: T } = b;
1289
+ const { selectedShape: b = { x: 1, y: 1 } } = l, { x: $, y: T } = b;
1290
1290
  for (let S = 0; S <= T; S++)
1291
1291
  a += " col |";
1292
1292
  a += `
1293
1293
  |`;
1294
1294
  for (let S = 0; S <= T; S++)
1295
1295
  a += " - |";
1296
- for (let S = 0; S <= p; S++) {
1296
+ for (let S = 0; S <= $; S++) {
1297
1297
  a += `
1298
1298
  |`;
1299
1299
  for (let I = 0; I <= T; I++)
@@ -1303,14 +1303,14 @@ ${b}
1303
1303
  break;
1304
1304
  }
1305
1305
  case "link": {
1306
- const { desc: b, url: p } = l;
1307
- a = `[${b}](${p})`, m = !1;
1306
+ const { desc: b, url: $ } = l;
1307
+ a = `[${b}](${$})`, m = !1;
1308
1308
  break;
1309
1309
  }
1310
1310
  case "image": {
1311
- const { desc: b, url: p, urls: T } = l;
1311
+ const { desc: b, url: $, urls: T } = l;
1312
1312
  T instanceof Array ? a = T.reduce((S, I) => S + `![${b}](${I})
1313
- `, "") : a = `![${b}](${p})
1313
+ `, "") : a = `![${b}](${$})
1314
1314
  `, m = !1;
1315
1315
  break;
1316
1316
  }
@@ -1407,8 +1407,8 @@ $$
1407
1407
  break;
1408
1408
  }
1409
1409
  case "universal": {
1410
- const { generate: b } = l, p = b(u);
1411
- a = p.targetValue, m = p.select, i = p.deviationStart, r = p.deviationEnd;
1410
+ const { generate: b } = l, $ = b(u);
1411
+ a = $.targetValue, m = $.select, i = $.deviationStart, r = $.deviationEnd;
1412
1412
  }
1413
1413
  }
1414
1414
  return {
@@ -1424,7 +1424,7 @@ $$
1424
1424
  replaceAll: g
1425
1425
  }
1426
1426
  };
1427
- }, zl = "#e5c07b", ht = "var(--md-color)", Gl = "#56b6c2", Kl = "#ffffff", ce = "var(--md-color)", bt = "#e5c07b", jl = "#e5c07b", Zl = "var(--md-color)", vt = "#d19a66", Xl = "#c678dd", Yl = "#21252b", Jl = "#2c313a", kt = "var(--md-bk-color)", pe = "var(--md-bk-color)", Ql = "#ceedfa33", Ct = "#528bff", eo = Se.theme(
1427
+ }, zl = "#e5c07b", ht = "var(--md-color)", Gl = "#56b6c2", Kl = "#ffffff", ce = "var(--md-color)", bt = "#e5c07b", jl = "#e5c07b", Zl = "var(--md-color)", vt = "#d19a66", Xl = "#c678dd", Yl = "#21252b", Jl = "#2c313a", kt = "var(--md-bk-color)", $e = "var(--md-bk-color)", Ql = "#ceedfa33", Ct = "#528bff", eo = Se.theme(
1428
1428
  {
1429
1429
  "&": {
1430
1430
  color: ce,
@@ -1466,15 +1466,15 @@ $$
1466
1466
  },
1467
1467
  ".cm-tooltip": {
1468
1468
  border: "1px solid var(--md-border-color)",
1469
- backgroundColor: pe
1469
+ backgroundColor: $e
1470
1470
  },
1471
1471
  ".cm-tooltip .cm-tooltip-arrow:before": {
1472
1472
  borderTopColor: "transparent",
1473
1473
  borderBottomColor: "transparent"
1474
1474
  },
1475
1475
  ".cm-tooltip .cm-tooltip-arrow:after": {
1476
- borderTopColor: pe,
1477
- borderBottomColor: pe
1476
+ borderTopColor: $e,
1477
+ borderBottomColor: $e
1478
1478
  },
1479
1479
  ".cm-tooltip-autocomplete": {
1480
1480
  "& > ul > li[aria-selected]": {
@@ -1523,10 +1523,10 @@ $$
1523
1523
  { tag: [c.atom, c.bool, c.special(c.variableName)], color: vt },
1524
1524
  { tag: [c.processingInstruction, c.string, c.inserted], color: Zl },
1525
1525
  { tag: c.invalid, color: Kl }
1526
- ]), pt = [
1526
+ ]), $t = [
1527
1527
  eo,
1528
1528
  Ot(to)
1529
- ], lo = "#e5c07b", $t = "#3f4a54", oo = "#56b6c2", ao = "#fff", ue = "#3f4a54", yt = "#2d8cf0", no = "#2d8cf0", io = "#3f4a54", Tt = "#d19a66", ro = "#c678dd", so = "#21252b", co = "#ceedfa33", wt = "var(--md-bk-color)", $e = "var(--md-bk-color)", uo = "#bad5fa", xt = "#3f4a54", mo = Se.theme(
1529
+ ], lo = "#e5c07b", pt = "#3f4a54", oo = "#56b6c2", ao = "#fff", ue = "#3f4a54", yt = "#2d8cf0", no = "#2d8cf0", io = "#3f4a54", Tt = "#d19a66", ro = "#c678dd", so = "#21252b", co = "#ceedfa33", wt = "var(--md-bk-color)", pe = "var(--md-bk-color)", uo = "#bad5fa", xt = "#3f4a54", mo = Se.theme(
1530
1530
  {
1531
1531
  "&": {
1532
1532
  color: ue,
@@ -1568,15 +1568,15 @@ $$
1568
1568
  },
1569
1569
  ".cm-tooltip": {
1570
1570
  border: "1px solid var(--md-border-color)",
1571
- backgroundColor: $e
1571
+ backgroundColor: pe
1572
1572
  },
1573
1573
  ".cm-tooltip .cm-tooltip-arrow:before": {
1574
1574
  borderTopColor: "transparent",
1575
1575
  borderBottomColor: "transparent"
1576
1576
  },
1577
1577
  ".cm-tooltip .cm-tooltip-arrow:after": {
1578
- borderTopColor: $e,
1579
- borderBottomColor: $e
1578
+ borderTopColor: pe,
1579
+ borderBottomColor: pe
1580
1580
  },
1581
1581
  ".cm-tooltip-autocomplete": {
1582
1582
  "& > ul > li[aria-selected]": {
@@ -1587,7 +1587,7 @@ $$
1587
1587
  // { dark: true }
1588
1588
  ), go = Bt.define([
1589
1589
  { tag: c.keyword, color: ro },
1590
- { tag: [c.name, c.deleted, c.character, c.propertyName, c.macroName], color: $t },
1590
+ { tag: [c.name, c.deleted, c.character, c.propertyName, c.macroName], color: pt },
1591
1591
  { tag: [c.function(c.variableName), c.labelName], color: no },
1592
1592
  { tag: [c.color, c.constant(c.name), c.standard(c.name)], color: Tt },
1593
1593
  { tag: [c.definition(c.name), c.separator], color: ue },
@@ -1621,7 +1621,7 @@ $$
1621
1621
  { tag: c.emphasis, fontStyle: "italic" },
1622
1622
  { tag: c.strikethrough, textDecoration: "line-through" },
1623
1623
  { tag: c.link, color: yt, textDecoration: "underline" },
1624
- { tag: c.heading, fontWeight: "bold", color: $t },
1624
+ { tag: c.heading, fontWeight: "bold", color: pt },
1625
1625
  { tag: [c.atom, c.bool, c.special(c.variableName)], color: Tt },
1626
1626
  { tag: [c.processingInstruction, c.string, c.inserted], color: io },
1627
1627
  { tag: c.invalid, color: ao }
@@ -1936,7 +1936,7 @@ const bo = (e) => {
1936
1936
  }
1937
1937
  });
1938
1938
  });
1939
- }, Co = ko, po = (e, o) => [
1939
+ }, Co = ko, $o = (e, o) => [
1940
1940
  {
1941
1941
  key: "Ctrl-b",
1942
1942
  mac: "Cmd-b",
@@ -2032,8 +2032,8 @@ const bo = (e) => {
2032
2032
  {
2033
2033
  any: (I, D) => (D.ctrlKey || D.metaKey) && D.altKey && D.shiftKey && D.code === "KeyT" ? (v.emit(e, x, "table"), !0) : !1
2034
2034
  }
2035
- ], $o = po, yo = (e) => {
2036
- const o = A("tabWidth"), l = A("editorId"), a = A("theme"), i = U(), r = Pt(), m = new be(), g = new be(), u = new be(), s = $o(l, e), h = vo(e), w = [
2035
+ ], po = $o, yo = (e) => {
2036
+ const o = A("tabWidth"), l = A("editorId"), a = A("theme"), i = U(), r = Pt(), m = new be(), g = new be(), u = new be(), s = po(l, e), h = vo(e), w = [
2037
2037
  ol.of([...s, sl]),
2038
2038
  tl,
2039
2039
  m.of(nl({ codeLanguages: al })),
@@ -2060,7 +2060,7 @@ const bo = (e) => {
2060
2060
  ], C = () => {
2061
2061
  const d = [
2062
2062
  ...w,
2063
- g.of(a.value === "light" ? St : pt),
2063
+ g.of(a.value === "light" ? St : $t),
2064
2064
  u.of(Mt(e.completions))
2065
2065
  ];
2066
2066
  return Q.codeMirrorExtensions(a.value, d, [
@@ -2089,8 +2089,8 @@ const bo = (e) => {
2089
2089
  name: x,
2090
2090
  callback(f, b = {}) {
2091
2091
  var S;
2092
- const { text: p, options: T } = ql(f, r.value, b);
2093
- (S = r.value) == null || S.replaceSelectedText(p, T, l);
2092
+ const { text: $, options: T } = ql(f, r.value, b);
2093
+ (S = r.value) == null || S.replaceSelectedText($, T, l);
2094
2094
  }
2095
2095
  });
2096
2096
  }), H(
@@ -2098,7 +2098,7 @@ const bo = (e) => {
2098
2098
  () => {
2099
2099
  var d;
2100
2100
  (d = r.value) == null || d.view.dispatch({
2101
- effects: g.reconfigure(a.value === "light" ? St : pt)
2101
+ effects: g.reconfigure(a.value === "light" ? St : $t)
2102
2102
  });
2103
2103
  },
2104
2104
  {
@@ -2201,13 +2201,13 @@ const bo = (e) => {
2201
2201
  resizeOperateStyle: u
2202
2202
  } = xo(e, a, i);
2203
2203
  return _l(e, l, m), () => t("div", {
2204
- class: `${n}-content`,
2204
+ class: `${n}-content${e.setting.htmlPreview || e.setting.preview ? " has-preview" : ""}`,
2205
2205
  ref: a
2206
2206
  }, [t("div", {
2207
2207
  class: `${n}-input-wrapper`,
2208
2208
  style: g,
2209
2209
  ref: r
2210
- }, null), t("div", {
2210
+ }, null), (e.setting.htmlPreview || e.setting.preview) && t("div", {
2211
2211
  class: `${n}-resize-operate`,
2212
2212
  style: u,
2213
2213
  ref: i
@@ -2368,8 +2368,8 @@ const bo = (e) => {
2368
2368
  } = e, u = G({
2369
2369
  scrollAuto: e.scrollAuto
2370
2370
  });
2371
- vl(e, o), kl(e), Cl(e), pl(e, o);
2372
- const [s, h] = $l(e, o), w = yl(e);
2371
+ vl(e, o), kl(e), Cl(e), $l(e, o);
2372
+ const [s, h] = pl(e, o), w = yl(e);
2373
2373
  return It(() => {
2374
2374
  v.clear(l);
2375
2375
  }), Tl(e, o, w, s, h), () => {