Editorjs stufff

This commit is contained in:
2025-11-13 22:29:56 +01:00
parent 07ebca03d4
commit dc276652ce
2 changed files with 5 additions and 2 deletions
+2
View File
@@ -127,3 +127,5 @@
outline: none !important; outline: none !important;
box-shadow: none !important; box-shadow: none !important;
} }
.ce-header { font-size: 32px !important; }
+3 -2
View File
@@ -41,6 +41,7 @@ export default function DocView() {
data: doc, data: doc,
async onChange() { async onChange() {
const savedData = await editor.save(); const savedData = await editor.save();
console.log("Document data:", savedData);
setDoc(savedData); setDoc(savedData);
}, },
}); });
@@ -53,8 +54,8 @@ export default function DocView() {
}, []); }, []);
return ( return (
<div className="h-full w-3xl mx-auto bg-accent/20 rounded-2xl px-4 py-2"> <div className="h-full w-3xl mx-auto bg-accent/20 rounded-2xl p-4">
<div ref={holderRef} className="docs-view min-h-[400px]" /> <div ref={holderRef} className="docs-view" />
</div> </div>
); );
} }