@bagelink/vue 0.0.1274 → 0.0.1276

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.
@@ -1 +1 @@
1
- {"version":3,"file":"FileUpload.vue.d.ts","sourceRoot":"","sources":["../../../../src/components/form/inputs/FileUpload.vue"],"names":[],"mappings":"AAqtBA,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,eAAe,CAAA;AAYhD,KAAK,MAAM,GAAG,MAAM,WAAW,CAAA;AAE/B,KAAK,WAAW,GAAG;IAClB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,KAAK,CAAC,EAAE,WAAW,GAAG,WAAW,EAAE,CAAA;IACnC,OAAO,CAAC,EAAE,MAAM,CAAA;IAChB,UAAU,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAA;IAC9B,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,MAAM,CAAC,EAAE,MAAM,GAAG,MAAM,CAAA;IACxB,KAAK,CAAC,EAAE,MAAM,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,IAAI,CAAC,EAAE,OAAO,CAAA;IACd,KAAK,CAAC,EAAE,UAAU,GAAG,OAAO,CAAA;IAC5B,MAAM,CAAC,EAAE,MAAM,CAAA;IACf,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,QAAQ,CAAC,EAAE,OAAO,CAAA;IAClB,eAAe,CAAC,EAAE,MAAM,CAAA;IACxB,iBAAiB,CAAC,EAAE,MAAM,CAAA;IAC1B,cAAc,CAAC,EAAE,MAAM,CAAA;CACvB,CAAC;AAmKF,iBAAS,MAAM,SAkBd;AA8BD,KAAK,iBAAiB,GAAG;IACzB,YAAY,CAAC,EAAE,MAAM,EAAE,GAAG,MAAM,CAAC;CAChC,GAAG,WAAW,CAAC;AAKhB,iBAAS,cAAc;WAslBT,OAAO,IAA6B;;;;;;;;;;;;;;;;;;;;;;;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AE,CAAC;;;;;;;;AAyV1G,wBASG"}
1
+ {"version":3,"file":"index.vue.d.ts","sourceRoot":"","sources":["../../../../../src/components/form/inputs/RichText/index.vue"],"names":[],"mappings":"AAsSA,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,iBAAiB,CAAA;AAQpD,KAAK,WAAW,GAAG;IAAE,UAAU,EAAE,MAAM,CAAC;IAAC,aAAa,CAAC,EAAE,aAAa,CAAC;IAAC,KAAK,CAAC,EAAE,OAAO,CAAC;IAAC,KAAK,CAAC,EAAE,MAAM,CAAA;CAAE,CAAC;;;;;;;;AAiW1G,wBASG"}
package/dist/index.cjs CHANGED
@@ -25804,7 +25804,7 @@ const _sfc_main$J = /* @__PURE__ */ vue.defineComponent({
25804
25804
  };
25805
25805
  }
25806
25806
  });
25807
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-9939a5fb"]]);
25807
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-50fd0597"]]);
25808
25808
  const _hoisted_1$B = ["title"];
25809
25809
  const _hoisted_2$p = { key: 0 };
25810
25810
  const _hoisted_3$k = ["value", "placeholder"];
@@ -28115,6 +28115,12 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
28115
28115
  }
28116
28116
  emit2("update:modelValue", newValue);
28117
28117
  });
28118
+ vue.watch(() => editor.state.isSplitView, (isEnabled) => {
28119
+ var _a2;
28120
+ if (isEnabled) {
28121
+ editor.state.content = ((_a2 = editor.state.doc) == null ? void 0 : _a2.body.innerHTML) || "";
28122
+ }
28123
+ });
28118
28124
  return (_ctx, _cache) => {
28119
28125
  var _a2, _b;
28120
28126
  return vue.openBlock(), vue.createElementBlock("div", _hoisted_1$s, [
@@ -28150,7 +28156,8 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
28150
28156
  _cache[0] || (_cache[0] = ($event) => vue.unref(editor).state.content = $event),
28151
28157
  _cache[1] || (_cache[1] = ($event) => vue.unref(editor).updateState.content("html"))
28152
28158
  ],
28153
- language: "html"
28159
+ language: "html",
28160
+ class: "code-editor"
28154
28161
  }, null, 8, ["modelValue"])) : vue.createCommentVNode("", true)
28155
28162
  ], 2),
28156
28163
  _ctx.debug ? (vue.openBlock(), vue.createElementBlock("div", _hoisted_3$e, [
@@ -28197,7 +28204,7 @@ const _sfc_main$z = /* @__PURE__ */ vue.defineComponent({
28197
28204
  };
28198
28205
  }
28199
28206
  });
28200
- const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-44cb2419"]]);
28207
+ const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-0aa61b83"]]);
28201
28208
  const _hoisted_1$r = { class: "flex gap-05" };
28202
28209
  const _hoisted_2$h = ["disabled"];
28203
28210
  const _hoisted_3$d = { key: 1 };
package/dist/index.mjs CHANGED
@@ -25802,7 +25802,7 @@ const _sfc_main$J = /* @__PURE__ */ defineComponent({
25802
25802
  };
25803
25803
  }
25804
25804
  });
25805
- const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-9939a5fb"]]);
25805
+ const FileUpload = /* @__PURE__ */ _export_sfc(_sfc_main$J, [["__scopeId", "data-v-50fd0597"]]);
25806
25806
  const _hoisted_1$B = ["title"];
25807
25807
  const _hoisted_2$p = { key: 0 };
25808
25808
  const _hoisted_3$k = ["value", "placeholder"];
@@ -28113,6 +28113,12 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
28113
28113
  }
28114
28114
  emit2("update:modelValue", newValue);
28115
28115
  });
28116
+ watch(() => editor.state.isSplitView, (isEnabled) => {
28117
+ var _a2;
28118
+ if (isEnabled) {
28119
+ editor.state.content = ((_a2 = editor.state.doc) == null ? void 0 : _a2.body.innerHTML) || "";
28120
+ }
28121
+ });
28116
28122
  return (_ctx, _cache) => {
28117
28123
  var _a2, _b;
28118
28124
  return openBlock(), createElementBlock("div", _hoisted_1$s, [
@@ -28148,7 +28154,8 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
28148
28154
  _cache[0] || (_cache[0] = ($event) => unref(editor).state.content = $event),
28149
28155
  _cache[1] || (_cache[1] = ($event) => unref(editor).updateState.content("html"))
28150
28156
  ],
28151
- language: "html"
28157
+ language: "html",
28158
+ class: "code-editor"
28152
28159
  }, null, 8, ["modelValue"])) : createCommentVNode("", true)
28153
28160
  ], 2),
28154
28161
  _ctx.debug ? (openBlock(), createElementBlock("div", _hoisted_3$e, [
@@ -28195,7 +28202,7 @@ const _sfc_main$z = /* @__PURE__ */ defineComponent({
28195
28202
  };
28196
28203
  }
28197
28204
  });
28198
- const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-44cb2419"]]);
28205
+ const RichText = /* @__PURE__ */ _export_sfc(_sfc_main$z, [["__scopeId", "data-v-0aa61b83"]]);
28199
28206
  const _hoisted_1$r = { class: "flex gap-05" };
28200
28207
  const _hoisted_2$h = ["disabled"];
28201
28208
  const _hoisted_3$d = { key: 1 };
package/dist/style.css CHANGED
@@ -1638,7 +1638,7 @@ pre code.hljs{
1638
1638
  }
1639
1639
  }
1640
1640
 
1641
- .fileUploadWrap[data-v-9939a5fb] {
1641
+ .fileUploadWrap[data-v-50fd0597] {
1642
1642
  outline: 1px solid var(--border-color);
1643
1643
  border-radius: var(--input-border-radius);
1644
1644
  text-align: center;
@@ -1650,7 +1650,7 @@ pre code.hljs{
1650
1650
  background: var(--input-bg);
1651
1651
  height: 215px;
1652
1652
  }
1653
- .bagel-input .fileUploadWrap.fileDropZone[data-v-9939a5fb] {
1653
+ .bagel-input .fileUploadWrap.fileDropZone[data-v-50fd0597] {
1654
1654
  background: var(--input-bg);
1655
1655
  display: flex;
1656
1656
  align-items: center;
@@ -1658,14 +1658,14 @@ pre code.hljs{
1658
1658
  color: var(--bgl-gray);
1659
1659
  flex-direction: column;
1660
1660
  }
1661
- .fileUploadWrap.dragover[data-v-9939a5fb],
1662
- .fileUploadWrap[data-v-9939a5fb]:hover {
1661
+ .fileUploadWrap.dragover[data-v-50fd0597],
1662
+ .fileUploadWrap[data-v-50fd0597]:hover {
1663
1663
  box-shadow: inset 0 0 10px #00000012;
1664
1664
  }
1665
- .fileUploadWrap[style*='height: auto;'][data-v-9939a5fb] {
1665
+ .fileUploadWrap[style*='height: auto;'][data-v-50fd0597] {
1666
1666
  min-height: 215px;
1667
1667
  }
1668
- .multi-image-item-preview[data-v-9939a5fb] {
1668
+ .multi-image-item-preview[data-v-50fd0597] {
1669
1669
  border: 1px solid var(--border-color) !important;
1670
1670
  border-radius: var(--input-border-radius);
1671
1671
  margin: 0.5rem !important;
@@ -1679,12 +1679,12 @@ pre code.hljs{
1679
1679
  gap: 1rem;
1680
1680
  align-items: center;
1681
1681
  }
1682
- .multi-image-item-preview p[data-v-9939a5fb] {
1682
+ .multi-image-item-preview p[data-v-50fd0597] {
1683
1683
  overflow: hidden;
1684
1684
  text-overflow: ellipsis;
1685
1685
  white-space: nowrap;
1686
1686
  }
1687
- .multi-preview[data-v-9939a5fb] {
1687
+ .multi-preview[data-v-50fd0597] {
1688
1688
  width: 40px;
1689
1689
  height: 40px;
1690
1690
  border-radius: var(--input-border-radius);
@@ -1695,17 +1695,17 @@ pre code.hljs{
1695
1695
  align-items: center;
1696
1696
  display: flex;
1697
1697
  }
1698
- .bgl-single-preview[data-v-9939a5fb] {
1698
+ .bgl-single-preview[data-v-50fd0597] {
1699
1699
  height: 100%;
1700
1700
  position: relative;
1701
1701
  }
1702
- .bgl-single-preview + .fileUploadPlaceHolder[data-v-9939a5fb] {
1702
+ .bgl-single-preview + .fileUploadPlaceHolder[data-v-50fd0597] {
1703
1703
  position: absolute;
1704
1704
  inset: 0;
1705
1705
  margin: auto;
1706
1706
  top: calc(50% - 2rem);
1707
1707
  }
1708
- .single-image-item-preview[data-v-9939a5fb] {
1708
+ .single-image-item-preview[data-v-50fd0597] {
1709
1709
  height: 100%;
1710
1710
  min-height: 100%;
1711
1711
  position: relative;
@@ -1713,13 +1713,13 @@ pre code.hljs{
1713
1713
  align-items: center;
1714
1714
  justify-content: center;
1715
1715
  }
1716
- .fileUploadWrap[style*='height: auto'] .single-image-item-preview[data-v-9939a5fb] {
1716
+ .fileUploadWrap[style*='height: auto'] .single-image-item-preview[data-v-50fd0597] {
1717
1717
  min-height: 215px;
1718
1718
  }
1719
- .fileUploadWrap[style*='height: auto'] .single-preview[data-v-9939a5fb] {
1719
+ .fileUploadWrap[style*='height: auto'] .single-preview[data-v-50fd0597] {
1720
1720
  margin: 0rem !important;
1721
1721
  }
1722
- .single-preview[data-v-9939a5fb] {
1722
+ .single-preview[data-v-50fd0597] {
1723
1723
  border-radius: var(--input-border-radius);
1724
1724
  margin: 1rem;
1725
1725
  padding: 0px;
@@ -1727,9 +1727,10 @@ pre code.hljs{
1727
1727
  height: calc(100% - 2rem);
1728
1728
  object-fit: cover;
1729
1729
  background: var(--bgl-gray-light);
1730
- width: 90%;
1730
+ width: calc(90% - 2rem);
1731
+ min-width: 5rem;
1731
1732
  }
1732
- .single-image-item-preview[data-v-9939a5fb]:hover::after {
1733
+ .single-image-item-preview[data-v-50fd0597]:hover::after {
1733
1734
  content: 'zoom_in';
1734
1735
  font-size: 32px;
1735
1736
  font-family: 'Material Symbols Outlined', serif;
@@ -1739,20 +1740,20 @@ pre code.hljs{
1739
1740
  z-index: 9;
1740
1741
  pointer-events: none;
1741
1742
  }
1742
- .single-image-item-preview:hover img[data-v-9939a5fb] {
1743
+ .single-image-item-preview:hover img[data-v-50fd0597] {
1743
1744
  filter: brightness(70%);
1744
1745
  }
1745
- .bgl_fill-image.single-image-item-preview[data-v-9939a5fb] {
1746
+ .bgl_fill-image.single-image-item-preview[data-v-50fd0597] {
1746
1747
  height: 100%;
1747
1748
  }
1748
- .bgl_fill-image.single-image-item-preview .single-preview[data-v-9939a5fb] {
1749
+ .bgl_fill-image.single-image-item-preview .single-preview[data-v-50fd0597] {
1749
1750
  border-radius: unset;
1750
1751
  object-fit: cover;
1751
1752
  box-shadow: unset;
1752
1753
  width: 100%;
1753
1754
  height: auto;
1754
1755
  }
1755
- .single-image-item-preview .pie[data-v-9939a5fb] {
1756
+ .single-image-item-preview .pie[data-v-50fd0597] {
1756
1757
  transform-origin: top;
1757
1758
  transform: scale(1.4);
1758
1759
  position: absolute;
@@ -1766,31 +1767,31 @@ pre code.hljs{
1766
1767
  border: none !important;
1767
1768
  padding: 0 !important;
1768
1769
  }
1769
- .bgl_oval-upload[data-v-9939a5fb] {
1770
+ .bgl_oval-upload[data-v-50fd0597] {
1770
1771
  border-radius: 100% !important;
1771
1772
  overflow: hidden;
1772
1773
  }
1773
- .bgl_oval-upload p[data-v-9939a5fb] {
1774
+ .bgl_oval-upload p[data-v-50fd0597] {
1774
1775
  padding: 0.75rem !important;
1775
1776
  font-size: 12px;
1776
1777
  }
1777
- .bgl_oval-upload .fileUploadPlaceHolder[data-v-9939a5fb] {
1778
+ .bgl_oval-upload .fileUploadPlaceHolder[data-v-50fd0597] {
1778
1779
  top: 0;
1779
1780
  }
1780
- .bgl_oval-upload .pie[data-v-9939a5fb] {
1781
+ .bgl_oval-upload .pie[data-v-50fd0597] {
1781
1782
  transform: scale(1);
1782
1783
  }
1783
- .bgl_oval-upload span.bgl_icon-font.color-primary[data-v-9939a5fb] {
1784
+ .bgl_oval-upload span.bgl_icon-font.color-primary[data-v-50fd0597] {
1784
1785
  transform: scale(0.4) !important;
1785
1786
  }
1786
- .bgl_oval-upload .single-image-item-preview[data-v-9939a5fb] {
1787
+ .bgl_oval-upload .single-image-item-preview[data-v-50fd0597] {
1787
1788
  height: 100%;
1788
1789
  }
1789
- .bgl_oval-upload .single-preview[data-v-9939a5fb] {
1790
+ .bgl_oval-upload .single-preview[data-v-50fd0597] {
1790
1791
  margin: 0;
1791
1792
  height: 100% !important;
1792
1793
  }
1793
- .pie[data-v-9939a5fb] {
1794
+ .pie[data-v-50fd0597] {
1794
1795
  width: 30px;
1795
1796
  height: 30px;
1796
1797
  position: relative;
@@ -1798,7 +1799,7 @@ pre code.hljs{
1798
1799
  align-items: center;
1799
1800
  justify-content: center;
1800
1801
  }
1801
- .pie[data-v-9939a5fb]:before {
1802
+ .pie[data-v-50fd0597]:before {
1802
1803
  content: '';
1803
1804
  position: absolute;
1804
1805
  border-radius: 50%;
@@ -1816,26 +1817,26 @@ pre code.hljs{
1816
1817
  #000 calc(100% - var(--b))
1817
1818
  );
1818
1819
  }
1819
- .pie .success[data-v-9939a5fb] {
1820
+ .pie .success[data-v-50fd0597] {
1820
1821
  transform: scale(0);
1821
1822
  opacity: 0;
1822
1823
  transition: all 0.3s ease-in-out;
1823
1824
  }
1824
- .pie .progress[data-v-9939a5fb] {
1825
+ .pie .progress[data-v-50fd0597] {
1825
1826
  position: absolute;
1826
1827
  font-size: 10px;
1827
1828
  }
1828
- .pie.complete .progress[data-v-9939a5fb] {
1829
+ .pie.complete .progress[data-v-50fd0597] {
1829
1830
  display: none;
1830
1831
  }
1831
- .pie.complete .success[data-v-9939a5fb] {
1832
+ .pie.complete .success[data-v-50fd0597] {
1832
1833
  transform: scale(1.3);
1833
1834
  opacity: 1;
1834
1835
  }
1835
- .pie.complete[data-v-9939a5fb]:before {
1836
+ .pie.complete[data-v-50fd0597]:before {
1836
1837
  background: conic-gradient(var(--bgl-green) calc(var(--p) * 1%), #0000 0);
1837
1838
  }
1838
- .pie.complete[data-v-9939a5fb] {
1839
+ .pie.complete[data-v-50fd0597] {
1839
1840
  color: var(--bgl-green);
1840
1841
  }
1841
1842
 
@@ -2055,29 +2056,34 @@ input[type="range"][data-v-25d991e5]:active::-webkit-slider-thumb {
2055
2056
  .content-area p,
2056
2057
  .content-area span,
2057
2058
  .content-area li{
2058
- line-height: 1.65;
2059
+ line-height: 1.65;
2060
+ }
2061
+ .code-editor {
2062
+ flex: 1;
2063
+ min-height: 240px !important;
2064
+ height: 100%;
2059
2065
  }
2060
2066
 
2061
- .rich-text-editor[data-v-44cb2419] {
2067
+ .rich-text-editor[data-v-0aa61b83] {
2062
2068
  background: var(--input-bg);
2063
2069
  border: 1px solid var(--border-color);
2064
2070
  transition: all 0.3s ease;
2065
2071
  }
2066
- .editor-container[data-v-44cb2419] {
2072
+ .editor-container[data-v-0aa61b83] {
2067
2073
  display: flex;
2068
2074
  gap: 1rem;
2069
2075
  }
2070
- .content-area[data-v-44cb2419],
2071
- .preview-area[data-v-44cb2419] {
2076
+ .content-area[data-v-0aa61b83],
2077
+ .preview-area[data-v-0aa61b83] {
2072
2078
  flex: 1;
2073
2079
  min-height: 200px;
2074
2080
  background: var(--bgl-richtext-color);
2075
2081
  }
2076
- .split-view[data-v-44cb2419] {
2082
+ .split-view[data-v-0aa61b83] {
2077
2083
  display: grid;
2078
2084
  grid-template-columns: 1fr 1fr;
2079
2085
  }
2080
- .editableContent[data-v-44cb2419] {
2086
+ .editableContent[data-v-0aa61b83] {
2081
2087
  width: 100%;
2082
2088
  min-height: 240px;
2083
2089
  height: 100%;
@@ -2085,7 +2091,7 @@ line-height: 1.65;
2085
2091
  outline: none;
2086
2092
  background: transparent;
2087
2093
  }
2088
- .html-editor[data-v-44cb2419] {
2094
+ .html-editor[data-v-0aa61b83] {
2089
2095
  width: 100%;
2090
2096
  height: 100%;
2091
2097
  min-height: 200px;
@@ -2096,12 +2102,12 @@ line-height: 1.65;
2096
2102
  color: white;
2097
2103
  background-color: var(--bgl-black);
2098
2104
  }
2099
- .preview-area[data-v-44cb2419] {
2105
+ .preview-area[data-v-0aa61b83] {
2100
2106
  font-family: monospace;
2101
2107
  white-space: pre-wrap;
2102
2108
  overflow-x: auto;
2103
2109
  }
2104
- .fullscreen-mode[data-v-44cb2419] {
2110
+ .fullscreen-mode[data-v-0aa61b83] {
2105
2111
  position: fixed;
2106
2112
  top: 0;
2107
2113
  left: 0;
@@ -2110,18 +2116,18 @@ line-height: 1.65;
2110
2116
  z-index: 9999;
2111
2117
  padding: 2rem;
2112
2118
  }
2113
- .fullscreen-mode .editor-container[data-v-44cb2419] {
2119
+ .fullscreen-mode .editor-container[data-v-0aa61b83] {
2114
2120
  height: calc(100vh - 4rem);
2115
2121
  }
2116
- .fullscreen-mode .content-area[data-v-44cb2419],
2117
- .fullscreen-mode .preview-area[data-v-44cb2419] {
2122
+ .fullscreen-mode .content-area[data-v-0aa61b83],
2123
+ .fullscreen-mode .preview-area[data-v-0aa61b83] {
2118
2124
  height: 100%;
2119
2125
  overflow-y: auto;
2120
2126
  }
2121
- .fullscreen-mode .code-editor[data-v-44cb2419]{
2127
+ .fullscreen-mode .code-editor[data-v-0aa61b83]{
2122
2128
  height: 100% !important;
2123
2129
  }
2124
- .debug-controls[data-v-44cb2419] {
2130
+ .debug-controls[data-v-0aa61b83] {
2125
2131
  display: flex;
2126
2132
  gap: 0.5rem;
2127
2133
  justify-content: flex-end;
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@bagelink/vue",
3
3
  "type": "module",
4
- "version": "0.0.1274",
4
+ "version": "0.0.1276",
5
5
  "description": "Bagel core sdk packages",
6
6
  "author": {
7
7
  "name": "Neveh Allon",
@@ -598,7 +598,8 @@ function drop(e: DragEvent) {
598
598
  height: calc(100% - 2rem);
599
599
  object-fit: cover;
600
600
  background: var(--bgl-gray-light);
601
- width: 90%;
601
+ width: calc(90% - 2rem);
602
+ min-width: 5rem;
602
603
  }
603
604
  .single-image-item-preview:hover::after {
604
605
  content: 'zoom_in';
@@ -142,6 +142,12 @@ watch(() => editor.state.content, (newValue) => {
142
142
  }
143
143
  emit('update:modelValue', newValue)
144
144
  })
145
+
146
+ watch(() => editor.state.isSplitView, (isEnabled) => {
147
+ if (isEnabled) {
148
+ editor.state.content = editor.state.doc?.body.innerHTML || ''
149
+ }
150
+ })
145
151
  </script>
146
152
 
147
153
  <template>
@@ -168,6 +174,7 @@ watch(() => editor.state.content, (newValue) => {
168
174
  v-if="editor.state.isSplitView"
169
175
  v-model="editor.state.content"
170
176
  language="html"
177
+ class="code-editor"
171
178
  @update:modelValue="editor.updateState.content('html')"
172
179
  />
173
180
  </div>
@@ -193,7 +200,13 @@ watch(() => editor.state.content, (newValue) => {
193
200
  .content-area p,
194
201
  .content-area span,
195
202
  .content-area li{
196
- line-height: 1.65;
203
+ line-height: 1.65;
204
+ }
205
+
206
+ .code-editor {
207
+ flex: 1;
208
+ min-height: 240px !important;
209
+ height: 100%;
197
210
  }
198
211
  </style>
199
212