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:
editor.execCommand('setSelection', 100, 100, false, true);