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:

ParameterTypeDescription
posPosition | Cm5EditorScrollRect | nullThe position or rectangle to scroll into view.
margin?number | undefinedOptional margin in pixels.

Returns: void