diff --git a/src/api.ts b/src/api.ts index dfba894..097ed3a 100644 --- a/src/api.ts +++ b/src/api.ts @@ -61,6 +61,7 @@ import { move, replace, } from "./utils/editor"; +import { addLineToNote } from "./utils/note"; const workspace = { getWorkspaceEditor, @@ -135,6 +136,10 @@ const editor = { getTextBetweenLines, }; +const note = { + insert: addLineToNote, +}; + export default { workspace, sync, @@ -143,4 +148,5 @@ export default { $export, $import, editor, + note, };