vue-editify 0.1.9 → 0.1.10

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/lib/editify.es.js CHANGED
@@ -2522,17 +2522,17 @@ const setRecentlyPoint = function(point) {
2522
2522
  const nextElement = this.getNextElementOfPoint(point);
2523
2523
  const block = point.element.getBlock();
2524
2524
  const inblock = point.element.getInblock();
2525
- if (previousElement && inblock && inblock.isContains(previousElement)) {
2525
+ if (previousElement && !AlexElement.VOID_NODES.includes(previousElement.parsedom) && inblock && inblock.isContains(previousElement)) {
2526
2526
  point.moveToEnd(previousElement);
2527
- } else if (nextElement && inblock && inblock.isContains(nextElement)) {
2527
+ } else if (nextElement && !AlexElement.VOID_NODES.includes(nextElement.parsedom) && inblock && inblock.isContains(nextElement)) {
2528
2528
  point.moveToStart(nextElement);
2529
- } else if (previousElement && block.isContains(previousElement)) {
2529
+ } else if (previousElement && !AlexElement.VOID_NODES.includes(previousElement.parsedom) && block.isContains(previousElement)) {
2530
2530
  point.moveToEnd(previousElement);
2531
- } else if (nextElement && block.isContains(nextElement)) {
2531
+ } else if (nextElement && !AlexElement.VOID_NODES.includes(nextElement.parsedom) && block.isContains(nextElement)) {
2532
2532
  point.moveToStart(nextElement);
2533
- } else if (previousElement) {
2533
+ } else if (previousElement && !AlexElement.VOID_NODES.includes(previousElement.parsedom)) {
2534
2534
  point.moveToEnd(previousElement);
2535
- } else if (nextElement) {
2535
+ } else if (nextElement && !AlexElement.VOID_NODES.includes(nextElement.parsedom)) {
2536
2536
  point.moveToStart(nextElement);
2537
2537
  }
2538
2538
  };
@@ -25630,7 +25630,7 @@ const i18n = (locale) => {
25630
25630
  return translations[locale][key];
25631
25631
  };
25632
25632
  };
25633
- const version = "0.1.9";
25633
+ const version = "0.1.10";
25634
25634
  const install = (app, props) => {
25635
25635
  const locale = (props ? props.locale : "zh_CN") || "zh_CN";
25636
25636
  app.provide("$editTrans", i18n(locale));