Documentation Index
Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
Use this file to discover all available pages before exploring further.
链接只能插入到主图层,无法插入到其他图层。该接口支持笔记中的撤销还原操作
| 参数 | 类型 | 说明 |
|---|---|---|
textLink.destPath | string | 目标路径/地址:当 linkType === 4 时填写 URL 地址,否则填写目标文件路径 |
textLink.destPage | number | 目标页码(仅 linkType === 0 或 linkType === 2 有效)linkType === 0:必须填非负整数,表示需要跳到指定页面linkType === 2:负数表示跳转到文档当前页,非负整数表示跳转到文档指定页面 |
textLink.style | number | 链接样式:0 实下划线,1 实边框,2 虚边框 |
textLink.linkType | number | 链接类型:0 跳转笔记页,1 跳转笔记文件,2 跳转文档,3 跳转图片,4 跳转网址 |
textLink.rect | Rect | 文本区域矩形(需为非零面积) |
textLink.fontSize | number | 字体大小(正数) |
textLink.fullText | string | 完整文本,仅文字链接需要 |
textLink.showText | string | 展示文本,仅文字链接需要 |
textLink.isItalic | number | 是否斜体:0 否,1 是 |
返回
APIResponse<number>:result为状态码(文档约定:0成功,-1失败,-2目标文件需要升级)