mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-20 14:45:02 +02:00
Update readme with another option for status
This commit is contained in:
parent
21f3424822
commit
91c9b9cb22
|
@ -53,6 +53,7 @@ simplemde.codemirror.getValue();
|
|||
|
||||
- **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`.
|
||||
- Optionally, you can set an array of status bar elements to include like `['lines', 'words', 'cursor']`
|
||||
- **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`.
|
||||
|
@ -63,6 +64,7 @@ simplemde.codemirror.getValue();
|
|||
new SimpleMDE({
|
||||
element: document.getElementById("MyID"),
|
||||
status: false,
|
||||
status: ['lines', 'words', 'cursor'], // Optional usage
|
||||
toolbar: false,
|
||||
autofocus: true,
|
||||
lineWrapping: false,
|
||||
|
|
Loading…
Reference in a new issue