|
@@ -11,7 +11,7 @@ export interface Props {
|
|
const modules = {
|
|
const modules = {
|
|
toolbar: [
|
|
toolbar: [
|
|
[{'header': [1, 2, false]}, 'bold', 'italic', 'blockquote', 'code-block', 'link'],
|
|
[{'header': [1, 2, false]}, 'bold', 'italic', 'blockquote', 'code-block', 'link'],
|
|
- [{'list': 'ordered'}, {'list': 'bullet'}, {'indent': '-1'}, {'indent': '+1'}],
|
|
|
|
|
|
+ [{'list': 'ordered'}, {'list': 'bullet'}, {'indent': '-1'}, {'indent': '+1'},'image'],
|
|
],
|
|
],
|
|
};
|
|
};
|
|
|
|
|
|
@@ -19,7 +19,7 @@ const formats = [
|
|
'header',
|
|
'header',
|
|
'bold', 'italic', 'underline', 'strike', 'blockquote', 'code-block',
|
|
'bold', 'italic', 'underline', 'strike', 'blockquote', 'code-block',
|
|
'list', 'bullet', 'indent',
|
|
'list', 'bullet', 'indent',
|
|
- 'link',
|
|
|
|
|
|
+ 'link','image'
|
|
];
|
|
];
|
|
|
|
|
|
const Quill: React.FC<Props> = (props) => {
|
|
const Quill: React.FC<Props> = (props) => {
|