UNPKG

@remirror/extension-drop-cursor

Version:

A cursor for the ages. Drag and drop content in your editor with class.

36 lines (35 loc) 860 B
import { PlainExtension, ProsemirrorPlugin } from '@remirror/core'; export interface DropCursorOptions { /** * Set the color of the cursor. * * @defaultValue 'black' */ color?: string; /** * Set the precise width of the cursor in pixels. * * @defaultValue 1 */ width?: number; } /** * Create a plugin that, when added to a ProseMirror instance, * shows a line indicator for where the drop target will be. * * @builtin */ export declare class DropCursorExtension extends PlainExtension<DropCursorOptions> { get name(): "dropCursor"; /** * Use the dropCursor plugin with provided options. */ createExternalPlugins(): ProsemirrorPlugin[]; } declare global { namespace Remirror { interface AllExtensions { dropCursor: DropCursorExtension; } } }