Skip to content

Commit 7aeab92

Browse files
committed
Fixed a bug with inline fk_name field. Added pydantic as dependency.
1 parent 2acd8e5 commit 7aeab92

1 file changed

Lines changed: 12 additions & 0 deletions

File tree

  • frontend/src/components/texteditor-field
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)