add: api.note.insert
This commit is contained in:
parent
3902ea2b4c
commit
4e53e239c9
|
|
@ -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,
|
||||
};
|
||||
|
|
|
|||
Loading…
Reference in New Issue