From 5d4b25e6baca5fc9c2300645500e591f097d98bf Mon Sep 17 00:00:00 2001 From: mertsincan Date: Fri, 21 Jun 2019 10:19:36 +0300 Subject: [PATCH] Refactor #938 --- src/components/editor/Editor.d.ts | 2 +- src/components/editor/Editor.js | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/src/components/editor/Editor.d.ts b/src/components/editor/Editor.d.ts index 2b8fe24842..b4c46ccef4 100644 --- a/src/components/editor/Editor.d.ts +++ b/src/components/editor/Editor.d.ts @@ -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 { diff --git a/src/components/editor/Editor.js b/src/components/editor/Editor.js index dd12f95c64..74ff19d96d 100644 --- a/src/components/editor/Editor.js +++ b/src/components/editor/Editor.js @@ -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 = { @@ -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() {