|
@@ -14,7 +14,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'}, 'image'],
|
|
|
|
|
|
+ [{'list': 'ordered'}, {'list': 'bullet'}, {'indent': '-1'}, {'indent': '+1'}, 'image','video'],
|
|
],
|
|
],
|
|
};
|
|
};
|
|
|
|
|
|
@@ -22,10 +22,10 @@ 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', 'image'
|
|
|
|
|
|
+ 'link', 'image','video'
|
|
];
|
|
];
|
|
|
|
|
|
-const Quill: React.FC<Props> = (props) => {
|
|
|
|
|
|
+const MyQuill: React.FC<Props> = (props) => {
|
|
const {
|
|
const {
|
|
value,
|
|
value,
|
|
onChange,
|
|
onChange,
|
|
@@ -47,4 +47,4 @@ const Quill: React.FC<Props> = (props) => {
|
|
);
|
|
);
|
|
};
|
|
};
|
|
|
|
|
|
-export default Quill;
|
|
|
|
|
|
+export default MyQuill;
|