Skip to content

armgit / E2B

Public Imported from GitHub
0

Open-source, secure environment with real-world tools for enterprise-grade agents.

Add comment

Tomas Valenta58f1b3d8e05b
diff --git a/hooks/useDocEditor.ts b/hooks/useDocEditor.ts
index 5fc790e87..788b0e203 100644
--- a/hooks/useDocEditor.ts
+++ b/hooks/useDocEditor.ts
@@ -27,7 +27,7 @@ const extensions = [
orderedList: false,
}),
Placeholder.configure({
- placeholder: "All You Need Is English",
+ placeholder: 'All You Need Is English',
}),
SlashCommand,
]
@@ -101,6 +101,8 @@ function useDocEditor({
}, [
onContentChange,
forceUpdate,
+ // We don't want the initialContent in the dependencies because that would reload the editor when we type.
+ // initialContent
])
return editor