mirror of
https://github.com/twentyhq/twenty
synced 2026-04-21 13:37:22 +00:00
36 lines
900 B
Text
36 lines
900 B
Text
---
|
|
title: محرر الكتل
|
|
---
|
|
|
|
<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>
|