Editorjs stufff
This commit is contained in:
@@ -127,3 +127,5 @@
|
|||||||
outline: none !important;
|
outline: none !important;
|
||||||
box-shadow: none !important;
|
box-shadow: none !important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.ce-header { font-size: 32px !important; }
|
||||||
|
|||||||
@@ -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>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user