mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-20 14:45:02 +02:00
Fixed "numbered-list" name. Added a hint about how to programmatically set the value.
This commit is contained in:
parent
4240da87c0
commit
de01fb33bc
|
@ -56,12 +56,16 @@ simplemde.render();
|
|||
</script>
|
||||
```
|
||||
|
||||
## Get the content
|
||||
## Get/set the content
|
||||
|
||||
```JavaScript
|
||||
simplemde.value();
|
||||
```
|
||||
|
||||
```JavaScript
|
||||
simplemde.value('This text will appear in the editor');
|
||||
```
|
||||
|
||||
## Configuration
|
||||
|
||||
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
|
||||
|
@ -123,7 +127,7 @@ heading-3 | toggleHeading3 | fa fa-header fa-header-x fa-header-3 | Small Headin
|
|||
code | toggleCodeBlock | fa fa-code | Code (Ctrl+Alt+C)
|
||||
quote | toggleBlockquote | fa fa-quote-left | Quote (Ctrl+')
|
||||
unordered-list | toggleUnorderedList | fa fa-list-ul | Generic List (Ctrl+L)
|
||||
numbered-list | toggleOrderedList | fa fa-list-ol | Numbered List (Ctrl+Alt+L)
|
||||
ordered-list | toggleOrderedList | fa fa-list-ol | Numbered List (Ctrl+Alt+L)
|
||||
link | drawLink | fa fa-link | Create Link (Ctrl+K)
|
||||
image | drawImage | fa fa-picture-o | Insert Image (Ctrl+Alt+I)
|
||||
horizontal-rule | drawHorizontalRule | fa fa-minus | Insert Horizontal Line
|
||||
|
|
Loading…
Reference in a new issue