prosemirror-dropcursor
Advanced tools
+6
-0
@@ -0,1 +1,7 @@ | ||
| ## 1.7.1 (2023-03-02) | ||
| ### Bug fixes | ||
| Don't hide the drop cursor when no valid drop point can be found below the pointer. | ||
| ## 1.7.0 (2023-02-07) | ||
@@ -2,0 +8,0 @@ |
+2
-2
@@ -174,4 +174,4 @@ 'use strict'; | ||
| if (this.editorView.dragging && this.editorView.dragging.slice) { | ||
| target = prosemirrorTransform.dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice); | ||
| if (target == null) return this.setCursor(null); | ||
| var point = prosemirrorTransform.dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice); | ||
| if (point != null) target = point; | ||
| } | ||
@@ -178,0 +178,0 @@ |
+3
-3
@@ -115,5 +115,5 @@ import { Plugin } from 'prosemirror-state'; | ||
| if (this.editorView.dragging && this.editorView.dragging.slice) { | ||
| target = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice); | ||
| if (target == null) | ||
| return this.setCursor(null); | ||
| let point = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice); | ||
| if (point != null) | ||
| target = point; | ||
| } | ||
@@ -120,0 +120,0 @@ this.setCursor(target); |
+1
-1
| { | ||
| "name": "prosemirror-dropcursor", | ||
| "version": "1.7.0", | ||
| "version": "1.7.1", | ||
| "description": "Drop cursor plugin for ProseMirror", | ||
@@ -5,0 +5,0 @@ "type": "module", |
@@ -133,4 +133,4 @@ import {Plugin, EditorState} from "prosemirror-state" | ||
| if (this.editorView.dragging && this.editorView.dragging.slice) { | ||
| target = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice) | ||
| if (target == null) return this.setCursor(null) | ||
| let point = dropPoint(this.editorView.state.doc, target, this.editorView.dragging.slice) | ||
| if (point != null) target = point | ||
| } | ||
@@ -137,0 +137,0 @@ this.setCursor(target) |
29128
0.31%