@halo-dev/richtext-editor 0.0.0-alpha.15 → 0.0.0-alpha.17

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.
@@ -20781,6 +20781,11 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
20781
20781
  type: Array,
20782
20782
  required: false,
20783
20783
  default: () => []
20784
+ },
20785
+ contentStyles: {
20786
+ type: Object,
20787
+ required: false,
20788
+ default: () => ({})
20784
20789
  }
20785
20790
  },
20786
20791
  setup(__props) {
@@ -20794,8 +20799,9 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
20794
20799
  createElementVNode("div", _hoisted_2$H, [
20795
20800
  createVNode(unref(EditorContent), {
20796
20801
  editor: __props.editor,
20802
+ style: normalizeStyle(__props.contentStyles),
20797
20803
  class: "editor-content prose prose-base !max-w-none prose-pre:p-0 bg-white prose-p:mt-3 prose-p:mb-3 prose-img:mt-0 prose-img:mb-0"
20798
- }, null, 8, ["editor"]),
20804
+ }, null, 8, ["editor", "style"]),
20799
20805
  createElementVNode("div", _hoisted_3$H, [
20800
20806
  renderSlot(_ctx.$slots, "extra")
20801
20807
  ])
@@ -41347,6 +41353,7 @@ lowlight$1.registerLanguage("vbnet", vbnet);
41347
41353
  lowlight$1.registerLanguage("wasm", wasm);
41348
41354
  lowlight$1.registerLanguage("xml", xml);
41349
41355
  lowlight$1.registerLanguage("yaml", yaml);
41356
+ lowlight$1.registerLanguage("html", xml);
41350
41357
  const lowlight = lowlight$1;
41351
41358
  const _hoisted_1$t = { class: "px-2 py-1.5" };
41352
41359
  const _hoisted_2$s = /* @__PURE__ */ createElementVNode("option", { value: null }, "auto", -1);
@@ -41580,8 +41587,8 @@ const Iframe = Node.create({
41580
41587
  },
41581
41588
  renderHTML({ HTMLAttributes }) {
41582
41589
  return [
41583
- "p",
41584
- ["iframe", mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)]
41590
+ "iframe",
41591
+ mergeAttributes(this.options.HTMLAttributes, HTMLAttributes)
41585
41592
  ];
41586
41593
  },
41587
41594
  addCommands() {