Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

선택한 좌표로 캐럿이동 또는 셀렉션을 확장시킵니다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
isExtendBoolean셀렉션 확장 여부 Selection extension (default: false)
isFinishBoolean

셀렉션이 끝났는지 여부 Scroll compensation (default: false)셀렉션이 끝날 경우 스크롤을 보정

Correct scrolling when selection ends.


Example:

Code Block
languagejs
themeEmacs
editor.execCommand('setSelection', 100, 100, false, true);

...