CodeMirrorEditor.clipPos method
CodeMirrorEditor › clipPos
Unofficial
Clip a position to be within the document bounds.Signature:
clipPos(pos: EditorPosition): EditorPositionParameters:
| Parameter | Type | Description |
|---|---|---|
| pos | EditorPosition | The editor position to clip. |
Returns: EditorPosition — The clipped position within document bounds.