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