Skip to content

Commit

Permalink
Update DraftailEditor.js
Browse files Browse the repository at this point in the history
  • Loading branch information
dwjohnston authored and thibaudcolas committed May 18, 2022
1 parent 7f26277 commit efc0c9c
Show file tree
Hide file tree
Showing 2 changed files with 24 additions and 0 deletions.
18 changes: 18 additions & 0 deletions lib/components/DraftailEditor.js
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,12 @@ type Props = {|
autoCorrect: ?string,
/** See https://draftjs.org/docs/api-reference-editor.html#aria-props. */
ariaDescribedBy: ?string,
ariaExpanded: ?boolean,
ariaLabel: ?string,
ariaLabelledBy: ?string,
ariaMultiline: ?boolean,
ariaOwneeID: ?string,
ariaRequired: ?string,
/** List of the available block types. */
blockTypes: $ReadOnlyArray<{|
...ControlProp,
Expand Down Expand Up @@ -931,6 +937,12 @@ class DraftailEditor extends Component<Props, State> {
autoComplete,
autoCorrect,
ariaDescribedBy,
ariaExpanded,
ariaLabel,
ariaLabelledBy,
ariaMultiline,
ariaOwneeID,
ariaRequired,
blockTypes,
inlineStyles,
entityTypes,
Expand Down Expand Up @@ -1010,6 +1022,12 @@ class DraftailEditor extends Component<Props, State> {
autoComplete={autoComplete}
autoCorrect={autoCorrect}
ariaDescribedBy={ariaDescribedBy}
ariaExpanded={ariaExpanded}
ariaLabel={ariaLabel}
ariaLabelledBy={ariaLabelledBy}
ariaMultiline={ariaMultiline}
ariaOwneeID={ariaOwneeID}
ariaRequired={ariaRequired}
handleReturn={this.handleReturn}
defaultKeyBindings={false}
handleKeyCommand={this.handleKeyCommand}
Expand Down
6 changes: 6 additions & 0 deletions lib/draftail.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,12 @@ declare namespace Draftail {
autoCorrect?: string | null;
/** See https://draftjs.org/docs/api-reference-editor.html#aria-props. */
ariaDescribedBy?: string | null;
ariaExpanded: ?boolean;
ariaLabel: ?string;
ariaLabelledBy: ?string;
ariaMultiline: ?boolean;
ariaOwneeID: ?string;
ariaRequired: ?string;
/** List of the available block types. */
blockTypes?: BlockType[];
/** List of the available inline styles. */
Expand Down

0 comments on commit efc0c9c

Please sign in to comment.