Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

prosemirror-dropcursor

Package Overview
Dependencies
Maintainers
1
Versions
34
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

prosemirror-dropcursor - npm Package Compare versions

Comparing version 1.7.0 to 1.7.1

6

CHANGELOG.md

@@ -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 @@

6

dist/index.js

@@ -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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc