mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-06-29 22:21:04 -06: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.
|
- **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`.
|
- **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`.
|
- **toolbar**: If set `false`, hide the toolbar. Defaults to `true`.
|
||||||
- **autofocus**: If set `true`, autofocuses the editor. Defaults to `false`.
|
- **autofocus**: If set `true`, autofocuses the editor. Defaults to `false`.
|
||||||
- **lineWrapping**: If set `false`, disable line wrapping. Defaults to `true`.
|
- **lineWrapping**: If set `false`, disable line wrapping. Defaults to `true`.
|
||||||
@ -63,6 +64,7 @@ simplemde.codemirror.getValue();
|
|||||||
new SimpleMDE({
|
new SimpleMDE({
|
||||||
element: document.getElementById("MyID"),
|
element: document.getElementById("MyID"),
|
||||||
status: false,
|
status: false,
|
||||||
|
status: ['lines', 'words', 'cursor'], // Optional usage
|
||||||
toolbar: false,
|
toolbar: false,
|
||||||
autofocus: true,
|
autofocus: true,
|
||||||
lineWrapping: false,
|
lineWrapping: false,
|
||||||
|
Loading…
x
Reference in New Issue
Block a user