fix typo on "readOnly" props

This commit is contained in:
M0Bruno
2019-01-10 00:18:28 +01:00
parent e836acc75a
commit 901587f71f
+10 -4
View File
@@ -1,11 +1,12 @@
// Type definitions for react-draft-wysiwyg 1.12
// Project: https://github.com/jpuri/react-draft-wysiwyg#readme
// Definitions by: imechZhangLY <https://github.com/imechZhangLY>
// brunoMaurice <https://github.com/brunoMaurice>
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
// TypeScript Version: 2.8
import * as React from 'react';
import * as Draft from 'draft-js';
import * as React from "react";
import * as Draft from "draft-js";
export type SyntheticKeyboardEvent = React.KeyboardEvent<{}>;
export type SyntheticEvent = React.SyntheticEvent<{}>;
@@ -51,7 +52,7 @@ export interface EditorProps {
mention?: object;
hashtag?: object;
textAlignment?: string;
readonly?: boolean;
readOnly?: boolean;
tabIndex?: number;
placeholder?: string;
ariaLabel?: string;
@@ -65,7 +66,12 @@ export interface EditorProps {
wrapperId?: number;
customDecorators?: object[];
editorRef?(ref: object): void;
handlePastedText?(text: string, html: string, editorState: EditorState, onChange: (editorState: EditorState) => void): boolean;
handlePastedText?(
text: string,
html: string,
editorState: EditorState,
onChange: (editorState: EditorState) => void
): boolean;
}
export class Editor extends React.Component<EditorProps> {