@zipify/wysiwyg 1.2.2-0 → 1.2.2-1

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/dist/wysiwyg.mjs CHANGED
@@ -25719,7 +25719,7 @@ const SelectionProcessor = Extension.create({
25719
25719
  this.storage.selection = state.selection;
25720
25720
  }),
25721
25721
  restoreSelection: createCommand(({ commands: commands2 }) => {
25722
- commands2.setTextSelection(this.storage.selection);
25722
+ this.storage.selection && commands2.setTextSelection(this.storage.selection);
25723
25723
  }),
25724
25724
  expandSelectionToBlock: createCommand(({ state, commands: commands2 }) => {
25725
25725
  let from2 = state.selection.from;
@@ -16,7 +16,7 @@ export const SelectionProcessor = Extension.create({
16
16
  }),
17
17
 
18
18
  restoreSelection: createCommand(({ commands }) => {
19
- commands.setTextSelection(this.storage.selection);
19
+ this.storage.selection && commands.setTextSelection(this.storage.selection);
20
20
  }),
21
21
 
22
22
  expandSelectionToBlock: createCommand(({ state, commands }) => {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "1.2.2-0",
3
+ "version": "1.2.2-1",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "bin": {