TIPTAP
This commit is contained in:
@@ -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>
|
||||
|
||||
|
||||
@@ -1,4 +1,3 @@
|
||||
@import "../node_modules/@mdxeditor/editor/dist/style.css";
|
||||
@tailwind base;
|
||||
@tailwind components;
|
||||
@tailwind utilities;
|
||||
|
||||
Reference in New Issue
Block a user