Skip to content

Type Editor


Type Editor / @type-editor/gapcursor / gap-cursor-plugin

gap-cursor-plugin

Functions

FunctionDescription

gapCursor

Creates a gap cursor plugin for the editor.

When enabled, this plugin will:

  • Capture clicks near positions that don't have a normally selectable position
  • Create gap cursor selections for such positions
  • Handle composition input to avoid IME conflicts
  • Render the gap cursor with the 'ProseMirror-gapcursor' CSS class