@tiptap/core 2.11.6 → 2.11.8
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/NodeView.d.ts.map +1 -1
- package/dist/index.cjs +3 -2
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +3 -2
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +3 -2
- package/dist/index.umd.js.map +1 -1
- package/package.json +2 -2
- package/src/Editor.ts +1 -1
- package/src/NodeView.ts +3 -1
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@tiptap/core",
|
|
3
3
|
"description": "headless rich text editor",
|
|
4
|
-
"version": "2.11.
|
|
4
|
+
"version": "2.11.8",
|
|
5
5
|
"homepage": "https://tiptap.dev",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"tiptap",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dist"
|
|
33
33
|
],
|
|
34
34
|
"devDependencies": {
|
|
35
|
-
"@tiptap/pm": "^2.11.
|
|
35
|
+
"@tiptap/pm": "^2.11.8"
|
|
36
36
|
},
|
|
37
37
|
"peerDependencies": {
|
|
38
38
|
"@tiptap/pm": "^2.7.0"
|
package/src/Editor.ts
CHANGED
|
@@ -254,7 +254,7 @@ export class Editor extends EventEmitter<EditorEvents> {
|
|
|
254
254
|
const name = typeof nameOrPluginKey === 'string' ? `${nameOrPluginKey}$` : nameOrPluginKey.key
|
|
255
255
|
|
|
256
256
|
// @ts-ignore
|
|
257
|
-
plugins =
|
|
257
|
+
plugins = plugins.filter(plugin => !plugin.key.startsWith(name))
|
|
258
258
|
})
|
|
259
259
|
|
|
260
260
|
if (prevPlugins.length === plugins.length) {
|
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
|
-
|
|
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
|
|