prosekit/extensions/drop-cursor
DropCursorOptions
Properties
class?
optional
class:string
A CSS class name to add to the cursor element.
color?
optional
color:string
|false
The color of the cursor. Use false
to apply no color and rely only on class.
Default
ts
'black'
width?
optional
width:number
The precise width of the cursor in pixels.
Default
ts
1
defineDropCursor()
defineDropCursor(
options
?):DropCursorExtension
Show up a decoration at the drop position when something is dragged over the editor.
See prosemirror-dropcursor for more information.
Parameters
• options?: DropCursorOptions
Returns
DropCursorExtension