@bigbinary/neeto-editor 1.45.1 → 1.45.2

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.
@@ -5559,7 +5559,13 @@ var BulletList = BulletList$1.extend({
5559
5559
  if (isListNode(prevNode)) {
5560
5560
  return commands.deleteCurrentNode();
5561
5561
  }
5562
- return commands.joinBackward();
5562
+
5563
+ // Check if the current node and previous node are compatible for join
5564
+ var prevListItem = $from.node($from.depth - 2);
5565
+ if (prevListItem && isListNode(prevListItem)) {
5566
+ return commands.joinBackward();
5567
+ }
5568
+ return commands.deleteCurrentNode();
5563
5569
  });
5564
5570
  }
5565
5571
  };