We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2acd8e5 commit 7aeab92Copy full SHA for 7aeab92
1 file changed
frontend/src/components/texteditor-field/index.tsx
@@ -0,0 +1,12 @@
1
+import React from 'react';
2
+import ReactQuill from 'react-quill';
3
+import 'react-quill/dist/quill.snow.css';
4
+
5
+interface ITextEditorFieldProps {
6
+ value?: any;
7
+ onChange?: (value: any) => void;
8
+}
9
10
+export const TextEditor: React.FC<ITextEditorFieldProps> = ({ value, onChange, ...props }) => {
11
+ return <ReactQuill theme="snow" value={value} onChange={onChange} {...props} />;
12
+};
0 commit comments