Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
修改链接数据。
static modifyLassoLink(modifyLink: { destPath: string; destPage?: number; linkType: number; style: number; fullText?: string; showText?: string; }): Promise<APIResponse<boolean>>;
modifyLink.destPath
string
linkType === 4
modifyLink.destPage
number
linkType === 0
linkType === 2
modifyLink.linkType
0
1
2
3
4
modifyLink.style
modifyLink.fullText
modifyLink.showText
modifyLassoLink
linkType
0..4
linkType=6
Link
LassoLink
APIResponse<boolean>
result === true
import { PluginNoteAPI } from 'sn-plugin-lib'; /** * 修改套索中的单个链接数据的示例。 */ export async function exampleModifyLassoLink() { const res = await PluginNoteAPI.modifyLassoLink({ destPath: '/storage/emulated/0/Note/target.note', destPage: 1, linkType: 0, style: 1, fullText: 'Full Text', showText: 'Show Text', }); if (!res.success) { throw new Error(res.error?.message ?? 'modifyLassoLink 调用失败'); } return res.result; }