Skip to content

prosekit/extensions/drop-cursor

DropCursorOptions

class?: string

A CSS class name to add to the cursor element.

color?: string | false

The color of the cursor. Use false to apply no color and rely only on class.

Default: 'black'

width?: number

The precise width of the cursor in pixels.

Default: 1

defineDropCursor

ts
function defineDropCursor(options?: DropCursorOptions): DropCursorExtension

Show up a decoration at the drop position when something is dragged over the editor.

See prosemirror-dropcursor for more information.