37 lines
893 B
Plaintext
37 lines
893 B
Plaintext
---
|
|
title: Block-Editor
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/api/api.png" alt="Kopfzeile" />
|
|
</Frame>
|
|
|
|
Verwendet einen blockbasierten Rich-Text-Editor von [BlockNote](https://www.blocknotejs.org/), um Benutzern das Bearbeiten und Anzeigen von Inhaltsblöcken zu ermöglichen.
|
|
|
|
<Tabs>
|
|
<Tab title=""Verwendung"">
|
|
|
|
```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=""Eigenschaften"">
|
|
|
|
|
|
| Props | Typ | Beschreibung |
|
|
| ------ | ----------------- | ------------------------------------------- |
|
|
| Editor | `BlockNoteEditor` | Instanz oder Konfiguration des Blockeditors |
|
|
|
|
|
|
|
|
</Tab>
|
|
</Tabs>
|