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
-`viewport-margin`<sup>1</sup> - sets the `viewportMargin` option of the CodeMirrror editor instance (default `10`)
38
+
-`readonly` - sets the codemirror's "readOnly" configuration attribute to true, you may set `readonly="nocursor"` if you want to disable the cursor and not let the user copy the text inside
45
39
46
-
- title - the title that displays on the card
47
-
- type - the content type ()
48
-
-->
40
+
*<sup>1</sup>Setting `viewport-margin` to `infinity` will auto-resize the editor to its contents. To see this in action, check out the [CodeMirror Auto-Resize Demo](https://codemirror.net/demo/resize.html).*
49
41
50
42
### Basic Usage
51
43
52
-
<!-- description -->
44
+
all language modes are dynamically loaded, and the css is dynamically loaded, you don't need to add any additional files for them
0 commit comments