@tiptap/core 3.0.0-beta.0 → 3.0.0-beta.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/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@tiptap/core",
3
3
  "description": "headless rich text editor",
4
- "version": "3.0.0-beta.0",
4
+ "version": "3.0.0-beta.2",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -51,7 +51,7 @@
51
51
  "jsx-runtime"
52
52
  ],
53
53
  "devDependencies": {
54
- "@tiptap/pm": "^3.0.0-beta.0"
54
+ "@tiptap/pm": "^3.0.0-beta.2"
55
55
  },
56
56
  "peerDependencies": {
57
57
  "@tiptap/pm": "^3.0.0-beta.0"
package/src/NodeView.ts CHANGED
@@ -98,7 +98,9 @@ export class NodeView<
98
98
  y = handleBox.y - domBox.y + offsetY
99
99
  }
100
100
 
101
- event.dataTransfer?.setDragImage(this.dom, x, y)
101
+ const clonedNode = this.dom.cloneNode(true) as HTMLElement
102
+
103
+ event.dataTransfer?.setDragImage(clonedNode, x, y)
102
104
 
103
105
  const pos = this.getPos()
104
106