From 1aa73c1f23742e7454a98db79466d8590bbe20b0 Mon Sep 17 00:00:00 2001 From: 01zulfi <85733202+01zulfi@users.noreply.github.com> Date: Fri, 10 Jul 2026 09:39:21 +0500 Subject: [PATCH] web: update editor's font size dynamically when default font size setting changes (#10047) 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 (