vue-editify 0.0.23 → 0.0.24

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.
package/examples/App.vue CHANGED
@@ -18,6 +18,9 @@ export default {
18
18
  maxRows: 20,
19
19
  maxColumns: 20
20
20
  },
21
+ sourceView: {
22
+ show: true
23
+ },
21
24
  extends: {
22
25
  alert: {
23
26
  title: '自定义菜单按钮',
package/lib/editify.es.js CHANGED
@@ -4385,7 +4385,7 @@ class AlexEditor {
4385
4385
  */
4386
4386
  getElementsByRange(includes = false, flat = false) {
4387
4387
  if (!this.range) {
4388
- return;
4388
+ return [];
4389
4389
  }
4390
4390
  if (this.range.anchor.isEqual(this.range.focus)) {
4391
4391
  return [];
@@ -4496,7 +4496,7 @@ class AlexEditor {
4496
4496
  */
4497
4497
  splitElementsByRange(includes = false, flat = false) {
4498
4498
  if (!this.range) {
4499
- return;
4499
+ return [];
4500
4500
  }
4501
4501
  const result = this.getElementsByRange(includes, flat);
4502
4502
  let elements = [];
@@ -22929,7 +22929,7 @@ const i18n = (locale) => {
22929
22929
  return translations[locale][key];
22930
22930
  };
22931
22931
  };
22932
- const version = "0.0.23";
22932
+ const version = "0.0.24";
22933
22933
  const install = (app, props) => {
22934
22934
  const locale = (props ? props.locale : "zh_CN") || "zh_CN";
22935
22935
  app.provide("$editTrans", i18n(locale));