셀렉션된 텍스트에 링크를 설정합니다.
...
Insert hyperlink to the selected text.
In caret status, the hyperlink is connected to the entered text or URL.
Parameters:
| Name | Type | Description |
|---|---|---|
| actionName | String액션 이름 | URL of the hyperlinkerlink inserting API |
| url | String | 링크 URL of the hyperlink |
| text | String입력될 텍스트 | Text to be entered |
| title | String링크 설명 | Tooltip of the hyperlink |
| target | String | 설정할 타겟 Target setting (_blank, _top, _parent, _self) |
Example:
| Code Block | ||||
|---|---|---|---|---|
| ||||
editor.execCommand('insertLink', 'http://www.synapeditor.com', '사이냅에디터 홈페이지로 가기Go to the Synap Editor homepage', '사이냅에디터Synap 홈페이지Editor', '_blank'); |