@@ -69,16 +69,16 @@ require('codemirror/mode/javascript/javascript');
69
69
70
70
## props
71
71
72
- | prop | type * ` default ` * | components | description |
73
- | --------------| -------------------| -----------------------------------| -----------------------------------------------------------------------------------------------------------------------|
74
- | ` autoCursor ` | boolean * ` true ` * | ` Controlled ` ` UnControlled ` | should component cursor position correct when ` value ` changed |
75
- | ` autoFocus ` | boolean * ` false ` * | ` Controlled ` ` UnControlled ` | should component focus on mount |
76
- | ` autoScroll ` | boolean * ` true ` * | ` Controlled ` ` UnControlled ` | should component scroll cursor position into view when ` value ` changed |
77
- | ` className ` | string | ` Controlled ` ` UnControlled ` | pass through class * ` class="react-codemirror2 className" ` * |
78
- | ` defineMode ` | object | ` Controlled ` ` UnControlled ` | pass a [ custom mode] ( http://marijnhaverbeke.nl/blog/codemirror-mode-system.html ) via ` {name: 'custom', fn: myModeFn} ` |
79
- | ` detach ` | boolean | ` UnControlled ` | should component ignore new props |
80
- | ` options ` | object | ` Controlled ` ` UnControlled ` | [ codemirror configuration] ( https://codemirror.net/doc/manual.html#config ) |
81
- | ` value ` | string | _ ** ` Controlled ` ** _ ` UnControlled ` | component value _ ** must be managed for controlled components** _ |
72
+ | prop | type& nbsp ; * ` default ` * | components | description |
73
+ | --------------| ------------------------ | -----------------------------------| -----------------------------------------------------------------------------------------------------------------------|
74
+ | ` autoCursor ` | boolean& nbsp ; * ` true ` * | ` Controlled ` & nbsp ; ` UnControlled ` | should component cursor position correct when ` value ` changed |
75
+ | ` autoFocus ` | boolean& nbsp ; * ` false ` * | ` Controlled ` & nbsp ; ` UnControlled ` | should component focus on mount |
76
+ | ` autoScroll ` | boolean& nbsp ; * ` true ` * | ` Controlled ` & nbsp ; ` UnControlled ` | should component scroll cursor position into view when ` value ` changed |
77
+ | ` className ` | string | ` Controlled ` & nbsp ; ` UnControlled ` | pass through class * ` class="react-codemirror2 className" ` * |
78
+ | ` defineMode ` | object | ` Controlled ` & nbsp ; ` UnControlled ` | pass a [ custom mode] ( http://marijnhaverbeke.nl/blog/codemirror-mode-system.html ) via ` {name: 'custom', fn: myModeFn} ` |
79
+ | ` detach ` | boolean | ` UnControlled ` | should component ignore new props |
80
+ | ` options ` | object | ` Controlled ` & nbsp ; ` UnControlled ` | [ codemirror configuration] ( https://codemirror.net/doc/manual.html#config ) |
81
+ | ` value ` | string | * ` Controlled ` & nbsp ; ` UnControlled ` | * component value _ ** must be managed for controlled components** _ |
82
82
83
83
## props cont. (wrapped codemirror [ programming api] ( https://codemirror.net/doc/manual.html#api ) )
84
84
0 commit comments