prosekit/extensions/drop-cursor
Interfaces
Section titled “Interfaces”DropCursorOptions
Section titled “DropCursorOptions”Properties
Section titled “Properties”-
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
Section titled “Default”'black'
-
width?:
number
-
The precise width of the cursor in pixels.
Default
Section titled “Default”1
Functions
Section titled “Functions”defineDropCursor()
Section titled “defineDropCursor()”-
function defineDropCursor(
options?
:DropCursorOptions
):PlainExtension
-
Show up a decoration at the drop position when something is dragged over the editor.
See prosemirror-dropcursor for more information.