This API supports undo/redo in NOTE.This API modifies the single link selected by the current lasso selection. You must lasso-select exactly one link first. If there is no lasso selection, the selection is not a link, or the selection contains multiple links, the call fails.
It is recommended to call this API from the plugin UI entered via a lasso toolbar button.
| Parameter | Type | Description |
|---|---|---|
modifyLink.destPath | string | Destination path / URL: when linkType === 4, set this to the URL; otherwise set it to the destination file path |
modifyLink.destPage | number | Destination page (only valid when linkType === 0 or linkType === 2)For linkType === 0: must be a non-negative integer, meaning the target note pageFor linkType === 2: a negative value jumps to the document current page; a non-negative integer jumps to the specified document page |
modifyLink.linkType | number | Link type: 0 note page, 1 note file, 2 document, 3 image, 4 URL |
modifyLink.style | number | Link style: 0 solid underline, 1 solid border, 2 dashed border |
modifyLink.fullText | string | Full text (required for text links) |
modifyLink.showText | string | Display text (required for text links) |
Returns
APIResponse<boolean>:result === trueindicates modification succeeded.
This API cannot modify a text link into a stroke link, nor modify a stroke link into a text link.