Skip to content

Commit

Permalink
Add "autoFocus" property to examples
Browse files Browse the repository at this point in the history
  • Loading branch information
Kirill Volkovich committed Apr 12, 2018
1 parent 844cde2 commit e398b61
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ MarkdownInput
| locale | string | Locale |
| extensions | array | See "Extension definition" section bellow. |
| additionalButtons | array | See "Additional buttons definition" section bellow. |
| autoFocus | bool | Set focus automatically on mount (default: true) |
| readOnly | bool | Disables toolbar and makes markdown text not editable. |

### Extension definition
Expand Down Expand Up @@ -56,6 +57,7 @@ function (optional) that is called on when the user presses the button, the func
<MarkdownInput
onChange={_scope.handleValueChange}
value={_scope.state.markdownExample}
autoFocus={false}
readOnly={false}
showFullScreenButton={true}
locale='en'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,14 @@ PlainMarkdownInput
| onFullScreen | func | Callback: `(bool isFullSceen) => {}` |
| value | string | Raw markdown |
| locale | string | Locale |
| autoFocus | bool | Set focus automatically on mount (default: true) |
| readOnly | bool | Disables toolbar and makes markdown text not editable. |

### Code Example

```
<PlainMarkdownInput
autoFocus={false}
onChange={_scope.handleValueChange}
value={_scope.state.value}
/>
Expand Down

0 comments on commit e398b61

Please sign in to comment.