8cadd00d34
Created by Github action --------- Co-authored-by: Crowdin Bot <support+bot@crowdin.com> Co-authored-by: github-actions <github-actions@twenty.com>
35 lines
898 B
Plaintext
35 lines
898 B
Plaintext
---
|
|
title: Blokkredigerer
|
|
image: /images/user-guide/api/api.png
|
|
---
|
|
|
|
<Frame>
|
|
<img src="/images/user-guide/api/api.png" alt="Header" />
|
|
</Frame>
|
|
|
|
Bruker en blokkbasert rikteksteditor fra [BlockNote](https://www.blocknotejs.org/) for å la brukerne redigere og vise innholdsblokker.
|
|
|
|
<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">
|
|
|
|
| <span>Egenskaper</span> | Type | Beskrivelse |
|
|
| ----------------------- | ----------------- | ----------------------------------------- |
|
|
| redigerer | `BlockNoteEditor` | Blokkredigererinstans eller konfigurasjon |
|
|
|
|
</Tab>
|
|
</Tabs>
|