File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -25,7 +25,7 @@ import {UnControlled as CodeMirror} from 'react-codemirror2'
25
25
theme: ' material' ,
26
26
lineNumbers: true
27
27
}}
28
- onChange= {(editor , metadata , value ) => {
28
+ onChange= {(editor , data , value ) => {
29
29
}}
30
30
/ >
31
31
```
@@ -40,7 +40,7 @@ import {Controlled as CodeMirror} from 'react-codemirror2'
40
40
onBeforeChange= {(editor , data , value ) => {
41
41
this .setState ({value});
42
42
}}
43
- onChange= {(editor , metadata , value ) => {
43
+ onChange= {(editor , data , value ) => {
44
44
}}
45
45
/ >
46
46
```
@@ -154,4 +154,4 @@ require('codemirror/mode/javascript/javascript');
154
154
- ` onUpdate(editor, event) ` - * [ update] ( https://codemirror.net/doc/manual.html#event_update ) *
155
155
- ` onViewportChange(editor, from, to) ` - * [ viewportChange] ( https://codemirror.net/doc/manual.html#event_viewportChange ) *
156
156
157
- [ MIT] ( ./LICENSE ) © 2017 [ scniro] ( https://github.com/scniro )
157
+ [ MIT] ( ./LICENSE ) © 2017 [ scniro] ( https://github.com/scniro )
You can’t perform that action at this time.
0 commit comments