diff --git a/src/components/StackedNote.vue b/src/components/StackedNote.vue
index 4177e09..0b67efc 100644
--- a/src/components/StackedNote.vue
+++ b/src/components/StackedNote.vue
@@ -15,6 +15,10 @@ const LinkedNotes = defineAsyncComponent(
() => import('@/components/LinkedNotes.vue')
)
+const EditNote = defineAsyncComponent(
+ () => import('@/modules/note/components/EditNote.vue')
+)
+
const props = defineProps<{
user: string
repo: string
@@ -46,7 +50,7 @@ const toggleMode = () => {
mode.value = mode.value === 'read' ? 'edit' : 'read'
}
-watch(content, () => {
+watch([content, mode], () => {
if (!content.value) {
return
}
@@ -92,7 +96,7 @@ watch(content, () => {
handleInput((e.target as any)?.innerText ?? '')"
+ >{{ initialContent }}
+