@tiptap/core 3.0.0-beta.16 → 3.0.0-beta.17

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.16",
4
+ "version": "3.0.0-beta.17",
5
5
  "homepage": "https://tiptap.dev",
6
6
  "keywords": [
7
7
  "tiptap",
@@ -52,10 +52,10 @@
52
52
  "jsx-dev-runtime"
53
53
  ],
54
54
  "devDependencies": {
55
- "@tiptap/pm": "3.0.0-beta.16"
55
+ "@tiptap/pm": "3.0.0-beta.17"
56
56
  },
57
57
  "peerDependencies": {
58
- "@tiptap/pm": "3.0.0-beta.16"
58
+ "@tiptap/pm": "3.0.0-beta.17"
59
59
  },
60
60
  "repository": {
61
61
  "type": "git",
package/src/PasteRule.ts CHANGED
@@ -267,7 +267,7 @@ export function pasteRulesPlugin(props: { editor: Editor; rules: PasteRule[] }):
267
267
  if (!isDroppedFromProseMirror) {
268
268
  const dragFromOtherEditor = tiptapDragFromOtherEditor
269
269
 
270
- if (dragFromOtherEditor) {
270
+ if (dragFromOtherEditor?.isEditable) {
271
271
  // setTimeout to avoid the wrong content after drop, timeout arg can't be empty or 0
272
272
  setTimeout(() => {
273
273
  const selection = dragFromOtherEditor.state.selection