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
956 B
Plaintext
32 lines
956 B
Plaintext
---
|
|
title: Blokový Editor
|
|
image: /images/user-guide/api/api.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/api/api.png" alt="Hlavička" />
|
|
</Frame>
|
|
|
|
Používá blokově založený editor bohatého textu od [BlockNote](https://www.blocknotejs.org/) pro umožnění uživatelům editovat a zobrazovat bloky obsahu.
|
|
|
|
<Tabs>
|
|
<Tab title="Použití">
|
|
```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="Vlastnosti">
|
|
| Vlastnosti | Typ | Popis |
|
|
| ---------- | ----------------- | ------------------------------------------- |
|
|
| editor | `BlockNoteEditor` | Instance nebo konfigurace blokového editoru |
|
|
</Tab>
|
|
</Tabs>
|