# prosemirror-dropcursor

> Drop cursor plugin for ProseMirror

Latest version **1.8.4** (published 2026-09-24) · MIT license · 0 weekly downloads

## Install

```sh
npm install prosemirror-dropcursor
pnpm add prosemirror-dropcursor
yarn add prosemirror-dropcursor
bun add prosemirror-dropcursor
```

## Health

**Score 70/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score; high quality score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 1.8.4 |
| Published | 2026-09-24 |
| First published | 2016-12-09 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 35 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Maintainers | marijn |

## Links

- npm: https://www.npmjs.com/package/prosemirror-dropcursor
- Repository: https://code.haverbeke.berlin/prosemirror/prosemirror-dropcursor
- npm.io page: https://npm.io/package/prosemirror-dropcursor

## Dependencies (3)

- [prosemirror-view](https://npm.io/package/prosemirror-view.md) ^1.1.0
- [prosemirror-state](https://npm.io/package/prosemirror-state.md) ^1.0.0
- [prosemirror-transform](https://npm.io/package/prosemirror-transform.md) ^1.1.0

## Recent versions

- 1.8.4 (latest) — 2026-09-24
- 1.5.0-beta.1 (beta) — 2022-05-20
- 1.8.3 — 2026-07-06
- 1.8.2 — 2025-04-22
- 1.8.1 — 2023-05-17
- 1.8.0 — 2023-03-27
- 1.7.1 — 2023-03-02
- 1.7.0 — 2023-02-07
- 1.6.1 — 2022-10-25
- 1.6.0 — 2022-08-07
- 1.5.0 — 2022-05-30
- 1.4.0 — 2021-11-11
- 1.3.5 — 2021-05-25
- 1.3.4 — 2021-04-01
- 1.3.3 — 2021-02-04
- … 22 more at https://npm.io/package/prosemirror-dropcursor/versions

## README

# prosemirror-dropcursor

[ [**WEBSITE**](https://prosemirror.net) | [**ISSUES**](https://code.haverbeke.berlin/prosemirror/prosemirror-dropcursor/issues) | [**FORUM**](https://discuss.prosemirror.net) | [**CHANGELOG**](https://code.haverbeke.berlin/prosemirror/prosemirror-dropcursor/src/branch/main/CHANGELOG.md) ]

This is a non-core example module for [ProseMirror](https://prosemirror.net).
ProseMirror is a well-behaved rich semantic content editor based on
contentEditable, with support for collaborative editing and custom
document schemas.

This module implements a plugin that shows a drop cursor for
ProseMirror.

The [project page](https://prosemirror.net) has more information, a
number of [examples](https://prosemirror.net/examples/) and the
[documentation](https://prosemirror.net/docs/).

This code is released under an
[MIT license](https://code.haverbeke.berlin/prosemirror/prosemirror/src/branch/main/LICENSE).
There's a [forum](http://discuss.prosemirror.net) for general
discussion and support requests, and the
[bug tracker](https://code.haverbeke.berlin/prosemirror/prosemirror/issues)
is the place to report issues.

We aim to be an inclusive, welcoming community. To make that explicit,
we have a [code of
conduct](http://contributor-covenant.org/version/1/1/0/) that applies
to communication around the project.

## Documentation

* **`dropCursor`**`(options?: interface = {}) → Plugin`\
   Create a plugin that, when added to a ProseMirror instance,
   causes a decoration to show up at the drop position when something
   is dragged over the editor.

   Nodes may add a `disableDropCursor` property to their spec to
   control the showing of a drop cursor inside them. This may be a
   boolean or a function, which will be called with a view, a
   position, and the DragEvent, and should return a boolean.

    * **`options`**

       * **`color`**`?: string`\
         The color of the cursor. Defaults to `black`.

       * **`width`**`?: number`\
         The precise width of the cursor in pixels. Defaults to 1.

       * **`class`**`?: string`\
         A CSS class name to add to the cursor element.

---
_Source: https://npm.io/package/prosemirror-dropcursor · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
