-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathContentCreateForm.tsx
More file actions
34 lines (30 loc) · 1019 Bytes
/
ContentCreateForm.tsx
File metadata and controls
34 lines (30 loc) · 1019 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
import { Editor } from '@toast-ui/react-editor';
import '@toast-ui/editor/dist/toastui-editor.css';
import { Layout, HorizonLine, InputTitle } from './ContentCreatreForm.styles';
export interface ContentCreateFormProps {
}
const ContentCreateForm = () => {
return (
<>
<Layout>
<InputTitle placeholder='제목을 입력하세요'/>
<HorizonLine />
<Editor
placeholder='텍스트 또는 콘텐츠를 추가해주세요'
previewStyle="vertical" // 미리보기 스타일 지정
height="300px" // 에디터 창 높이
initialEditType="wysiwyg" // 초기 입력모드 설정(디폴트 markdown)
toolbarItems={[
// 툴바 옵션 설정
['heading', 'bold', 'italic', 'strike'],
['hr', 'quote'],
['ul', 'ol', 'task', 'indent', 'outdent'],
['table', 'image', 'link'],
['code', 'codeblock']
]}
></Editor>
</Layout>
</>
)
};
export default ContentCreateForm;