mirror of
https://github.com/streetwriters/notesnook.git
synced 2026-08-29 10:09:26 +02:00
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:
@@ -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}
|
||||||
|
|||||||
Reference in New Issue
Block a user