add: api.note.insert

This commit is contained in:
windingwind 2023-09-08 16:11:55 +08:00
parent 3902ea2b4c
commit 4e53e239c9

View File

@ -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,
};