Skip to content

Cm5Editor.scrollIntoView method

Cm5Editor › scrollIntoView

Unofficial

Scrolls the editor to the given position.

Signature:

scrollIntoView(pos: Position | Cm5EditorScrollRect | null, margin?: number | undefined): void

Parameters:

Parameter Type Description
pos Position | Cm5EditorScrollRect | null The position or rectangle to scroll into view.
margin? number | undefined Optional margin in pixels.

Returns: void