Page tree
Skip to end of metadata
Go to start of metadata

Move the caret or extend the selection to the desired coordinate.


Parameters:

NameTypeDescription
actionNameString'setSelection' move the caret or extend the selection to the desired coordinate API
xNumberx coordinate
yNumbery coordinate
isExtendBooleanSelection extension (default: false)
isFinishBoolean

Scroll compensation (default: false)

Correct scrolling when selection ends.


Example:

editor.execCommand('setSelection', 100, 100, false, true);
  • No labels