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.
保存当前笔记文件。
replaceElements
insertElements
modifyElements
saveCurrentNote
static saveCurrentNote(): Promise<APIResponse<boolean>>;
APIResponse<boolean>
result === true
import { PluginNoteAPI } from 'sn-plugin-lib'; /** * 保存当前笔记的示例。 */ export async function exampleSaveCurrentNote() { const res = await PluginNoteAPI.saveCurrentNote(); if (!res.success) { throw new Error(res.error?.message ?? 'saveCurrentNote 调用失败'); } return res.result; }