diff --git a/app/components/editor/Tiptap.tsx b/app/components/editor/Tiptap.tsx index a687746..8f39797 100644 --- a/app/components/editor/Tiptap.tsx +++ b/app/components/editor/Tiptap.tsx @@ -26,11 +26,13 @@ const Tiptap: React.FC<{ }); useEffect(() => { if (!editor) return; - const value = content; - if (value) { - editor.commands.setContent(value); + if (content) { + editor.commands.setContent(content); } - }, [editor, content]); + // Only set content when editor initializes, not on every content change. + // Content updates from user input are handled by onUpdate callback. + // eslint-disable-next-line react-hooks/exhaustive-deps + }, [editor]); return (