Skip to main content

extension-drop-cursor

package @remirror/extension-drop-cursor

class DropCursorExtension

Create a plugin that, when added to a ProseMirror instance, shows a line indicator for where the drop target will be.

Signature:

export declare class DropCursorExtension extends PlainExtension<DropCursorOptions> 

Extends: PlainExtension<DropCursorOptions>

(Some inherited members may not be shown because they are not represented in the documentation.)

property name

Signature:

get name(): "dropCursor";

method createExternalPlugins

Use the dropCursor plugin with provided options.

Signature:

createExternalPlugins(): ProsemirrorPlugin[];

Returns:

ProsemirrorPlugin[]

interface DropCursorOptions

Signature:

export interface DropCursorOptions 

property color

Set the color of the cursor.

Signature:

color?: string;

property width

Set the precise width of the cursor in pixels.

Signature:

width?: number;