3dd858c91e
Created by Github action Pulls the latest documentation translations from Crowdin for all supported languages: - French (fr) - Arabic (ar) - Czech (cs) - German (de) - Spanish (es) - Italian (it) - Japanese (ja) - Korean (ko) - Portuguese (pt) - Romanian (ro) - Russian (ru) - Turkish (tr) - Chinese (zh-CN) --------- Co-authored-by: github-actions <github-actions@twenty.com>
32 lines
988 B
Plaintext
32 lines
988 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>
|