web: update editor's font size dynamically when default font size setting changes (#10047)

Signed-off-by: 01zulfi <85733202+01zulfi@users.noreply.github.com>
This commit is contained in:
01zulfi
2026-07-10 09:39:21 +05:00
committed by GitHub
parent 9ec22724e9
commit 1aa73c1f23

View File

@@ -684,6 +684,12 @@ function TiptapWrapper(
} }
}, [props.spellcheck]); }, [props.spellcheck]);
useEffect(() => {
if (editorContainerRef.current) {
editorContainerRef.current.style.fontSize = `${editorConfig.fontSize}px`;
}
}, [editorConfig.fontSize]);
return ( return (
<Flex <Flex
ref={containerRef} ref={containerRef}