跳转到主要内容
标题
使用来自 BlockNote 的基于区块的富文本编辑器,允许用户编辑和查看内容块。
import { useBlockNote } from "@blocknote/react";
import { BlockEditor } from "@/ui/input/editor/components/BlockEditor";

export const MyComponent = () => {
  const BlockNoteEditor = useBlockNote();

  return <BlockEditor editor={BlockNoteEditor} />;
};