Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
1db5060c42 |
@@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"name": "app-ts",
|
"name": "app-ts",
|
||||||
"version": "1.6.3",
|
"version": "1.6.4",
|
||||||
"description": "",
|
"description": "",
|
||||||
"main": "dist/server.js",
|
"main": "dist/server.js",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
|
|||||||
@@ -99,11 +99,8 @@ export default function RichEditor({
|
|||||||
useLayoutEffect(() => {
|
useLayoutEffect(() => {
|
||||||
if (!quillRef.current) return;
|
if (!quillRef.current) return;
|
||||||
const editor = quillRef.current.getEditor();
|
const editor = quillRef.current.getEditor();
|
||||||
editor.format("font", "tahoma");
|
editor.root.style.fontFamily = "Tahoma, sans-serif";
|
||||||
editor.format("size", "14px");
|
editor.root.style.fontSize = "14px";
|
||||||
// Quill auto-focuses on mount with existing content, which scrolls
|
|
||||||
// the page to the editor. Blur to prevent unwanted scroll.
|
|
||||||
editor.blur();
|
|
||||||
}, []);
|
}, []);
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
|||||||
Reference in New Issue
Block a user