prosekit/extensions/drop-cursor
DropCursorOptions
class
A CSS class name to add to the cursor element.
Type:
string
color
The color of the cursor. Use
false
to apply no color and rely only on class.Type:
string | false
Default:
'black'
width
The precise width of the cursor in pixels.
Type:
number
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.