You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
`NB!` Do not forget to add required mode `mode/xml/xml.js`
33
+
`NB!` Do not forget to add required CodeMirror mode `mode/xml/xml.js`
34
34
35
35
`jqueryCodemirrorDefaults` are:
36
36
@@ -40,35 +40,39 @@ height: "auto"; (Set in CSS)
40
40
41
41
Height options are `auto` and `inherit`
42
42
43
-
When `auto`, CodeMirror container is auto resized. (Container's CSS parameter `height` value should be `auto`! May have `min-height`, should not ave`max-height`)
43
+
When `auto`, CodeMirror container is auto resized. (Container's CSS parameter `height` value should be `auto`! May have `min-height`, should not have`max-height`)
44
44
45
45
When `inherit`, CodeMirror container is not resized, scroll-bar appears. (Container's CSS `height` value should not be `auto`! )
46
46
47
47
48
-
You can set CodeMirror configs in DOM element attribute `codemirror-config` or `codemirror`. Latest is preferred.
48
+
You can set CodeMirror configs in DOM element attribute `codemirror-config` or `codemirror` in JSON format. Last one is preferred when both used.
You can set plugin configs in DOM element attribute `jquery-codemirror-config` or `jquery-codemirror`. Latest is preferred.
54
+
You can set plugin configs in DOM element attribute `jquery-codemirror-config` or `jquery-codemirror` in JSON format. Last one is preferred when both used.
Plugin itself adds `setValue(string), getValue(), setOption(option, value), setOptions(optionsObject)`. You can access them after initialization is done.
71
72
72
73
```
73
-
$(...).codemirror().getValue()
74
+
$(...).codemirrorInit();
75
+
$(...).codemirror().getValue();
74
76
```
77
+
78
+
`NB!` Plugin's options (height) cannot be set outside initialization (yet).
0 commit comments