Page tree

Versions Compared

Key

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

캐럿이 위치한 곳에 텍스트를 삽입합니다.

...

Insert texts at the caret position.

When there is a selection, the selected block is deleted and the text is inserted.


Parameters:

NameTypeDescription
actionNameString액션 이름'insertText' text inserting API
textString삽입할 텍스트Text to insert


Example:

Code Block
languagejs
themeEmacs
editor.execCommand('insertText', 'text');

...