Editorjs stuff

This commit is contained in:
2025-11-13 22:50:48 +01:00
parent dc276652ce
commit 37746361b1
2 changed files with 22 additions and 10 deletions
+8 -2
View File
@@ -10,10 +10,16 @@ import Table from "@editorjs/table";
import Delimiter from "@editorjs/delimiter";
import Warning from "@editorjs/warning";
import InlineCode from "@editorjs/inline-code";
import { OutputData } from "@editorjs/editorjs";
export default function DocView() {
export default function DocView({
doc,
setDoc,
}: {
doc: OutputData;
setDoc: (data: OutputData) => void;
}) {
const holderRef = useRef<HTMLDivElement | null>(null);
const [doc, setDoc] = useState({ blocks: [] });
useEffect(() => {
let editor: any;