vue-editify 0.2.26 → 0.2.27

Sign up to get free protection for your applications and to get access to all the features.
package/examples/App.vue CHANGED
@@ -8,7 +8,6 @@
8
8
  <script setup lang="ts">
9
9
  import { h, ref, onErrorCaptured } from 'vue'
10
10
  import { Editify } from '../src'
11
-
12
11
  onErrorCaptured(err => {
13
12
  console.log(err)
14
13
  })
@@ -73,6 +72,7 @@ const val = ref<string>(`<p>3333</p><p>3333</p><p>3333</p><p>3333</p>`)
73
72
  const insert = () => {
74
73
  editifyRef.value!.editor.insertText('hello')
75
74
  editifyRef.value!.editor.domRender()
75
+ editifyRef.value!.editor.rangeRender()
76
76
  }
77
77
  </script>
78
78
  <style lang="less">
@@ -240,7 +240,7 @@ export declare const getMenuConfig: (editTrans: (key: string) => any, editLocale
240
240
  * @param component
241
241
  * @returns
242
242
  */
243
- export declare const withInstall: <T extends Component>(component: T) => SFCWithInstall<typeof component>;
243
+ export declare const withInstall: <T extends Component>(component: T) => SFCWithInstall<T>;
244
244
  /**
245
245
  * 是否点击了编辑器以外的元素
246
246
  * @param editor
package/lib/editify.es.js CHANGED
@@ -4246,9 +4246,6 @@ class AlexEditor {
4246
4246
  */
4247
4247
  rangeRender() {
4248
4248
  return new Promise((resolve) => {
4249
- if (this.disabled) {
4250
- return resolve();
4251
- }
4252
4249
  const selection = window.getSelection();
4253
4250
  if (!selection) {
4254
4251
  return resolve();
@@ -4974,7 +4971,7 @@ class AlexEditor {
4974
4971
  event$1.off(this.$el, "beforeinput.alex_editor compositionstart.alex_editor compositionupdate.alex_editor compositionend.alex_editor keydown.alex_editor cut.alex_editor paste.alex_editor copy.alex_editor dragstart.alex_editor drop.alex_editor focus.alex_editor blur.alex_editor");
4975
4972
  }
4976
4973
  }
4977
- const version$2 = "1.4.40";
4974
+ const version$2 = "1.5.0";
4978
4975
  console.log(`%c alex-editor %c v${version$2} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
4979
4976
  const number = {
4980
4977
  /**
@@ -44618,7 +44615,7 @@ const Editify = withInstall(editify);
44618
44615
  const install = (app) => {
44619
44616
  app.component(Editify.name, Editify);
44620
44617
  };
44621
- const version = "0.2.26";
44618
+ const version = "0.2.27";
44622
44619
  console.log(`%c vue-editify %c v${version} `, "padding: 2px 1px; border-radius: 3px 0 0 3px; color: #fff; background: #606060; font-weight: bold;", "padding: 2px 1px; border-radius: 0 3px 3px 0; color: #fff; background: #42c02e; font-weight: bold;");
44623
44620
  export {
44624
44621
  AlexElement,