prosemirror-dropcursor
Advanced tools
Comparing version 1.7.0 to 1.7.1
@@ -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 @@ |
@@ -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); |
{ | ||
"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) |
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
29128