e0d4492013
Created by Github action Co-authored-by: github-actions <github-actions@twenty.com>
32 lines
1019 B
Plaintext
32 lines
1019 B
Plaintext
---
|
|
title: ブロックエディター
|
|
image: /images/user-guide/api/api.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/api/api.png" alt="ヘッダー" />
|
|
</Frame>
|
|
|
|
ブロックベースのリッチテキストエディター[BlockNote](https://www.blocknotejs.org/)を使用して、ユーザーがコンテンツのブロックを編集および表示できるようにします。
|
|
|
|
<Tabs>
|
|
<Tab title="使用方法">
|
|
```jsx
|
|
import { useBlockNote } from "@blocknote/react";
|
|
import { BlockEditor } from "@/ui/input/editor/components/BlockEditor";
|
|
|
|
export const MyComponent = () => {
|
|
const BlockNoteEditor = useBlockNote();
|
|
|
|
return <BlockEditor editor={BlockNoteEditor} />;
|
|
};
|
|
```
|
|
</Tab>
|
|
|
|
<Tab title="プロパティ">
|
|
| プロパティ | タイプ | 説明 |
|
|
| ----- | ----------------- | -------------------- |
|
|
| エディター | `BlockNoteEditor` | ブロックエディターインスタンスまたは構成 |
|
|
</Tab>
|
|
</Tabs>
|