mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-15 20:25:17 +02:00
Update README to include new options
This commit is contained in:
parent
e84f985e3d
commit
214045165c
|
@ -61,6 +61,7 @@ simplemde.value();
|
|||
- **lineWrapping**: If set to `false`, disable line wrapping. Defaults to `true`.
|
||||
- **indentWithTabs**: If set to `false`, indent using spaces instead of tabs. Defaults to `true`.
|
||||
- **tabSize**: If set, customize the tab size. Defaults to `2`.
|
||||
- **initialValue**: If set, will customize the initial value of the editor.
|
||||
- **spellChecker**: If set to `false`, disable the spell checker. Defaults to `true`.
|
||||
- **autosave**: *Saves the text that's being written. It will forget the text when the form is submitted.*
|
||||
- **enabled**: If set to `true`, autosave the text. Defaults to `false`.
|
||||
|
@ -73,10 +74,14 @@ var simplemde = new SimpleMDE({
|
|||
status: false,
|
||||
status: ['autosave', 'lines', 'words', 'cursor'], // Optional usage
|
||||
toolbar: false,
|
||||
toolbarTips: false,
|
||||
toolbarGuideIcon: false,
|
||||
autofocus: true,
|
||||
lineWrapping: false,
|
||||
indentWithTabs: false,
|
||||
tabSize: 4,
|
||||
initialValue: "Hello world!",
|
||||
spellChecker: false,
|
||||
autosave: {
|
||||
enabled: true,
|
||||
unique_id: "MyUniqueID",
|
||||
|
|
Loading…
Reference in a new issue