@zipify/wysiwyg 3.4.1 → 3.4.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.
package/dist/wysiwyg.mjs CHANGED
@@ -17215,11 +17215,8 @@ class PastePlugin extends ProseMirrorPlugin {
17215
17215
  view.dispatch(transaction);
17216
17216
  return true;
17217
17217
  }
17218
- _insertPastedContent({ state, input }, slice2) {
17219
- if (!this._isFullBlockSelected(state)) {
17220
- return state.tr.replaceSelection(slice2);
17221
- }
17222
- return state.tr.replaceSelectionWith(slice2.content, input.shiftKey);
17218
+ _insertPastedContent({ state }, slice2) {
17219
+ return this._isFullBlockSelected(state) ? state.tr.replaceSelectionWith(slice2.content, false) : state.tr.replaceSelection(slice2);
17223
17220
  }
17224
17221
  _isFullBlockSelected(state) {
17225
17222
  const blocksSelection = this._expandSelectionToBlocks(state);
@@ -46,12 +46,10 @@ export class PastePlugin extends ProseMirrorPlugin {
46
46
  return true;
47
47
  }
48
48
 
49
- _insertPastedContent({ state, input }, slice) {
50
- if (!this._isFullBlockSelected(state)) {
51
- return state.tr.replaceSelection(slice);
52
- }
53
-
54
- return state.tr.replaceSelectionWith(slice.content, input.shiftKey);
49
+ _insertPastedContent({ state }, slice) {
50
+ return this._isFullBlockSelected(state)
51
+ ? state.tr.replaceSelectionWith(slice.content, false)
52
+ : state.tr.replaceSelection(slice);
55
53
  }
56
54
 
57
55
  _isFullBlockSelected(state) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zipify/wysiwyg",
3
- "version": "3.4.1",
3
+ "version": "3.4.2",
4
4
  "description": "Zipify modification of TipTap text editor",
5
5
  "main": "dist/wysiwyg.mjs",
6
6
  "bin": {