Page tree

Versions Compared

Key

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

셀렉션된 텍스트에 링크를 설정합니다.

...

Insert hyperlink to the selected text.

In caret status, the hyperlink is connected to the entered text or URL.


Parameters:

NameTypeDescription
actionNameString액션 이름URL of the hyperlinkerlink inserting API
urlString

링크 URL of the hyperlink

textString입력될 텍스트Text to be entered
titleString링크 설명Tooltip of the hyperlink
targetString

설정할 타겟 Target setting (_blank, _top, _parent, _self)


Example:

Code Block
languagejs
themeEmacs
editor.execCommand('insertLink', 'http://www.synapeditor.com', '사이냅에디터 홈페이지로 가기Go to the Synap Editor homepage', '사이냅에디터Synap 홈페이지Editor', '_blank');