From 9c9f430be65e8aedef092c77e7cc82c808f7d88a Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Thu, 2 Jul 2026 11:40:34 +0500 Subject: [PATCH] web: update editor's font size dynamically when default font size setting changes Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com> --- apps/web/src/components/editor/tiptap.tsx | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/apps/web/src/components/editor/tiptap.tsx b/apps/web/src/components/editor/tiptap.tsx index c2ccd6a65..d4b72db17 100644 --- a/apps/web/src/components/editor/tiptap.tsx +++ b/apps/web/src/components/editor/tiptap.tsx @@ -684,6 +684,12 @@ function TiptapWrapper( } }, [props.spellcheck]); + useEffect(() => { + if (editorContainerRef.current) { + editorContainerRef.current.style.fontSize = `${editorConfig.fontSize}px`; + } + }, [editorConfig.fontSize]); + return (