선택한 좌표로 캐럿이동 또는 셀렉션을 확장시킵니다Move the caret or extend the selection to the desired coordinate.
Parameters:
| Name | Type | Description |
|---|---|---|
| actionName | String액션 이름 | 'setSelection' move the caret or extend the selection to the desired coordinate API |
| x | Number | x 좌표 (화면에서의 좌표)coordinate |
| y | Number | y 좌표 (화면에서의 좌표)coordinate |
| isExtend | Boolean | 셀렉션 확장 여부 Selection extension (default: false) |
| isFinish | Boolean | 셀렉션이 끝났는지 여부 Scroll compensation (default: false)셀렉션이 끝날 경우 스크롤을 보정 Correct scrolling when selection ends. |
Example:
| Code Block | ||||
|---|---|---|---|---|
| ||||
editor.execCommand('setSelection', 100, 100, false, true); |
...