Cursor
Defined in: extensions/cursor/position.ts:22
Extends
Section titled “Extends”Cursor(
editor,options):any
Defined in: extensions/cursor/position.ts:22
Parameters
Section titled “Parameters”editor
Section titled “editor”PrismEditor<{ }>
options
Section titled “options”EditorOptions<{ }>
Returns
Section titled “Returns”any
Properties
Section titled “Properties”element
Section titled “element”element:
HTMLSpanElement
Defined in: extensions/cursor/position.ts:28
The empty span element representing the cursor.
Methods
Section titled “Methods”getPosition()
Section titled “getPosition()”getPosition():
CursorPosition
Defined in: extensions/cursor/position.ts:24
Gets the cursor position relative to the editor overlays.
Returns
Section titled “Returns”scrollIntoView()
Section titled “scrollIntoView()”scrollIntoView():
void
Defined in: extensions/cursor/position.ts:26
Scrolls the cursor into view.
Returns
Section titled “Returns”void