Skip to content

Commit

Permalink
Refactor #938
Browse files Browse the repository at this point in the history
  • Loading branch information
mertsincan committed Jun 21, 2019
1 parent db8f85b commit 5d4b25e
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion src/components/editor/Editor.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,10 @@ interface EditorProps {
readonly?: boolean;
modules?: any;
formats?: any[];
theme?: string;
headerTemplate?: JSX.Element | undefined,
onTextChange?(e: { htmlValue: string|null, textValue: string, delta: any, source: string }): void;
onSelectionChange?(e: { range: any, oldRange: any, source: string }): void;
theme?: string;
}

export class Editor extends React.Component<EditorProps, any> {
Expand Down
8 changes: 4 additions & 4 deletions src/components/editor/Editor.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@ export class Editor extends Component {
readOnly: false,
modules: null,
formats: null,
theme: 'snow',
headerTemplate: null,
onTextChange: null,
onSelectionChange: null,
theme: 'snow'
onSelectionChange: null
};

static propTypes = {
Expand All @@ -31,10 +31,10 @@ export class Editor extends Component {
readOnly: PropTypes.bool,
modules: PropTypes.object,
formats: PropTypes.array,
theme: PropTypes.string,
headerTemplate: PropTypes.any,
onTextChange: PropTypes.func,
onSelectionChange: PropTypes.func,
theme: PropTypes.oneOf(['snow', 'bubble'])
onSelectionChange: PropTypes.func
};

componentDidMount() {
Expand Down

0 comments on commit 5d4b25e

Please sign in to comment.