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:
editor.execCommand('insertLink', 'http://www.synapeditor.com', 'Go to the Synap Editor homepage', 'Synap Editor', '_blank');