32 lines
910 B
Plaintext
32 lines
910 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>
|