Page tree

Versions Compared

Key

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

...

Code Block
languagejs
themeEmacs
var selection = editor.getSelection();

var startPosition = selection.start;
var endPosition = selection.end;
var anchorPosition = selection.anchor;
var focusPosition = selection.focus;



또한 Selection은 선택된 컨텐츠의 종류에 따라 text, cell, drawingObject로 구분됩니다.
이 타입에 따라서 위치정보가 포함하고 있는 내용이 아래와 같이 다르게 구성됩니다.

...