From de01fb33bc33f3225700aa5fd5c30477ec2cee76 Mon Sep 17 00:00:00 2001 From: Luiz Augusto Crisostomo Date: Fri, 4 Sep 2015 10:56:10 -0300 Subject: [PATCH] Fixed "numbered-list" name. Added a hint about how to programmatically set the value. --- README.md | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index 5fc1b3f..d409108 100644 --- a/README.md +++ b/README.md @@ -56,12 +56,16 @@ simplemde.render(); ``` -## 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