Page tree

Versions Compared

Key

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

...

Code Block
languagejs
themeEmacs
titleposition을 지정하지 않은 경우If position is not specified
var element = editor.getHTMLElement();
console.log(element.innerHTML);

...

Code Block
languagejs
themeEmacs
titleSelection을 이용해서 position을 지정한 경우When a position is specified using Selection
var selection = editor.getSelection();
var startElement = editor.getHTMLElement(selection.start);
console.log(startElement.innerHTML);
var endElement = editor.getHTMLElement(selection.end);
console.log(endElement.innerHTML);

...