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'
2525 theme: ' material' ,
2626 lineNumbers: true
2727 }}
28- onChange= {(editor , metadata , value ) => {
28+ onChange= {(editor , data , value ) => {
2929 }}
3030/ >
3131```
@@ -40,7 +40,7 @@ import {Controlled as CodeMirror} from 'react-codemirror2'
4040 onBeforeChange= {(editor , data , value ) => {
4141 this .setState ({value});
4242 }}
43- onChange= {(editor , metadata , value ) => {
43+ onChange= {(editor , data , value ) => {
4444 }}
4545/ >
4646```
@@ -154,4 +154,4 @@ require('codemirror/mode/javascript/javascript');
154154- ` onUpdate(editor, event) ` - * [ update] ( https://codemirror.net/doc/manual.html#event_update ) *
155155- ` onViewportChange(editor, from, to) ` - * [ viewportChange] ( https://codemirror.net/doc/manual.html#event_viewportChange ) *
156156
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