|
|
|
@ -46,14 +46,24 @@ simplemde.codemirror.getValue();
|
|
|
|
|
## Configuration
|
|
|
|
|
|
|
|
|
|
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
|
|
|
|
|
- **status**: If set false, hide the status bar. Defaults to true.
|
|
|
|
|
- **toolbar**: If set false, hide the toolbar. Defaults to true.
|
|
|
|
|
- **status**: If set `false`, hide the status bar. Defaults to `true`.
|
|
|
|
|
- **toolbar**: If set `false`, hide the toolbar. Defaults to `true`.
|
|
|
|
|
- **autofocus**: If set `true`, autofocuses the editor. Defaults to `false`.
|
|
|
|
|
- **lineWrapping**: If set `false`, disable line wrapping. Defaults to `true`.
|
|
|
|
|
- **lineNumbers**: If set `true`, shows line numbers. Defaults to `false`.
|
|
|
|
|
- **indentWithTabs**: If set `false`, indent using spaces instead of tabs. Defaults to `true`.
|
|
|
|
|
- **tabSize**: If set, customize the tab size. Defaults to `'2'`.
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
new SimpleMDE({
|
|
|
|
|
element: document.getElementById("MyID"),
|
|
|
|
|
status: false,
|
|
|
|
|
toolbar: false,
|
|
|
|
|
autofocus: true,
|
|
|
|
|
lineWrapping: false,
|
|
|
|
|
lineNumbers: true,
|
|
|
|
|
indentWithTabs: false,
|
|
|
|
|
tabSize: '4',
|
|
|
|
|
});
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|