Skip to content

Commit 0bc15d8

Browse files
committed
markdown table
1 parent 9ceb442 commit 0bc15d8

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

README.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -121,15 +121,15 @@ require('codemirror/mode/javascript/javascript');
121121

122122
## events
123123

124-
| event | components | description |
125-
|---------------------------------------------------|----------------------------|-------------------------------------------------------------------------------------------------------------|
126-
| `editorDidAttach(editor)` | `UnControlled` | component is now **responding** to new props |
127-
| `editorDidConfigure(editor)` | `Controlled,UnControlled` | component configuration has been set |
128-
| `editorDidDetach(editor)` | `UnControlled` | component is now **ignoring** new props |
129-
| `editorDidMount(editor, _**next**_)` | `Controlled,UnControlled` | **invoking optional `next` will trigger `editorDidConfigure`** |
130-
| `editorWillUnmount(editor)` | `editor` | `Controlled,UnControlled` | invoked before [`componentWillUnmount`](https://reactjs.org/docs/react-component.html#componentwillunmount) |
131-
| `onBeforeChange(editor, data, value, _**next**_)` | `Controlled,UnControlled*` | * if used, `next` is returned via `UnControlled` and *must* be invoked to trigger onChange |
132-
| `onChange(editor, data, value)` | `Controlled,UnControlled` | the component value has been changed |
124+
| event | components | description |
125+
|--------------------------------------------------------------|----------------------------------|-------------------------------------------------------------------------------------------------------------|
126+
| editorDidAttach(editor) | `UnControlled` | component is now **responding** to new props |
127+
| editorDidConfigure(editor) | `Controlled` `UnControlled` | component configuration has been set |
128+
| editorDidDetach(editor) | `UnControlled` | component is now **ignoring** new props |
129+
| editorDidMount(editor, *[next]*) | `Controlled` `UnControlled` | * invoking optional `next` will trigger `editorDidConfigure` |
130+
| editorWillUnmount(editor) | `Controlled` `UnControlled` | invoked before [`componentWillUnmount`](https://reactjs.org/docs/react-component.html#componentwillunmount) |
131+
| onBeforeChange(editor, data, value, *[next]*) | `Controlled` `UnControlled` | * if used, `next` is returned via `UnControlled` and *must* be invoked to trigger onChange |
132+
| onChange(editor, data, value) | `Controlled` `UnControlled` | the component value has been changed |
133133

134134
## events cont. [wrapped codemirror events](https://codemirror.net/doc/manual.html#events)
135135

0 commit comments

Comments
 (0)