This commit is contained in:
cdricms
2025-02-20 19:45:11 +01:00
parent 07c632dafe
commit 5bdfc9ce06
9 changed files with 1554 additions and 3092 deletions

View File

@@ -1,5 +1,4 @@
"use client";
import { useState } from "react";
import { Button } from "@/components/ui/button";
import useApiMutation from "@/hooks/use-api";
import dynamic from "next/dynamic";
@@ -16,13 +15,13 @@ export default function BlogEditor() {
isSuccess,
} = useApiMutation("/blog/new", undefined, "POST", false, true);
const content = localStorage.getItem("blog_draft") ?? "";
return (
<section className="m-10">
<div className="flex">
<div className="flex-1">
<Editor
markdown={localStorage.getItem("blog_draft") ?? ""}
/>
<Editor content={content} />
</div>
</div>

View File

@@ -1,4 +1,3 @@
@import "../node_modules/@mdxeditor/editor/dist/style.css";
@tailwind base;
@tailwind components;
@tailwind utilities;