mirror of
https://github.com/Ionaru/easy-markdown-editor
synced 2025-07-13 13:04:27 -06: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>
|
</script>
|
||||||
```
|
```
|
||||||
|
|
||||||
## Get the content
|
## Get/set the content
|
||||||
|
|
||||||
```JavaScript
|
```JavaScript
|
||||||
simplemde.value();
|
simplemde.value();
|
||||||
```
|
```
|
||||||
|
|
||||||
|
```JavaScript
|
||||||
|
simplemde.value('This text will appear in the editor');
|
||||||
|
```
|
||||||
|
|
||||||
## Configuration
|
## Configuration
|
||||||
|
|
||||||
- **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.
|
||||||
@ -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)
|
code | toggleCodeBlock | fa fa-code | Code (Ctrl+Alt+C)
|
||||||
quote | toggleBlockquote | fa fa-quote-left | Quote (Ctrl+')
|
quote | toggleBlockquote | fa fa-quote-left | Quote (Ctrl+')
|
||||||
unordered-list | toggleUnorderedList | fa fa-list-ul | Generic List (Ctrl+L)
|
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)
|
link | drawLink | fa fa-link | Create Link (Ctrl+K)
|
||||||
image | drawImage | fa fa-picture-o | Insert Image (Ctrl+Alt+I)
|
image | drawImage | fa fa-picture-o | Insert Image (Ctrl+Alt+I)
|
||||||
horizontal-rule | drawHorizontalRule | fa fa-minus | Insert Horizontal Line
|
horizontal-rule | drawHorizontalRule | fa fa-minus | Insert Horizontal Line
|
||||||
|
Loading…
x
Reference in New Issue
Block a user