Files
twenty/packages/twenty-docs/l/vi/twenty-ui/input/block-editor.mdx
T
github-actions[bot] 8cadd00d34 i18n - translations (#15799)
Created by Github action

---------

Co-authored-by: Crowdin Bot <support+bot@crowdin.com>
Co-authored-by: github-actions <github-actions@twenty.com>
2025-11-13 16:34:00 +01:00

35 lines
1000 B
Plaintext

---
title: Trình soạn thảo khối
image: /images/user-guide/api/api.png
---
<Frame>
<img src="/images/user-guide/api/api.png" alt="Header" />
</Frame>
Sử dụng trình soạn thảo văn bản phong phú dựa trên khối từ [BlockNote](https://www.blocknotejs.org/) để cho phép người dùng chỉnh sửa và xem các khối nội dung.
<Tabs>
<Tab title="Usage">
```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="Props">
| Thuộc Tính | Loại | Mô tả |
| --------------- | ----------------- | ------------------------------------------------ |
| trình soạn thảo | `BlockNoteEditor` | Phiên bản hoặc cấu hình của trình soạn thảo khối |
</Tab>
</Tabs>