Skip to content

Commit

Permalink
添加 useEditor 方法,用以简化 getEditor
Browse files Browse the repository at this point in the history
  • Loading branch information
umodoc committed Sep 20, 2024
1 parent 8212755 commit 3a48438
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -790,6 +790,7 @@ defineExpose({
saveContent,
getContentExcerpt,
getEditor: () => editor,
useEditor: () => editor.value,
getTableOfContents: () => tableOfContents.value,
getSelectionText: () => (editor.value ? getSelectionText(editor.value) : ''),
getSelectionNode: () =>
Expand Down

0 comments on commit 3a48438

Please sign in to comment.