vue-editify 0.1.16 → 0.1.17

Sign up to get free protection for your applications and to get access to all the features.
package/examples/App.vue CHANGED
@@ -1,6 +1,6 @@
1
1
  <template>
2
2
  <div style="padding: 80px 10px 10px 10px; height: 100%; box-sizing: border-box">
3
- <Editify ref="editify" border v-model="val" :menu="menuConfig" style="height: 100%" placeholder="Please Enter Text..." locale="zh_CN" :custom-image-paste="customImagePaste"></Editify>
3
+ <Editify ref="editify" border v-model="val" :menu="menuConfig" style="height: 100%" placeholder="Please Enter Text..." locale="zh_CN" allowPasteHtml :custom-image-paste="customImagePaste"></Editify>
4
4
  </div>
5
5
  </template>
6
6
  <script setup lang="ts">
package/lib/editify.es.js CHANGED
@@ -3931,6 +3931,9 @@ class AlexEditor {
3931
3931
  const marks = getAttributes(node);
3932
3932
  const styles = getStyles(node);
3933
3933
  const parsedom = node.nodeName.toLocaleLowerCase();
3934
+ if (parsedom == "style" || parsedom == "meta" || parsedom == "script" || parsedom == "link") {
3935
+ return new AlexElement("text", null, null, null, null);
3936
+ }
3934
3937
  const block = blockParse.find((item) => item.parsedom == parsedom);
3935
3938
  const inblock = inblockParse.find((item) => item.parsedom == parsedom);
3936
3939
  const inline = inlineParse.find((item) => item.parsedom == parsedom);
@@ -25717,7 +25720,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
25717
25720
  }
25718
25721
  });
25719
25722
  const Editify = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-fed58116"]]);
25720
- const version = "0.1.16";
25723
+ const version = "0.1.17";
25721
25724
  const install = (app) => {
25722
25725
  app.component(Editify.name, Editify);
25723
25726
  };