From 5ba95f1ba62c005b2dd896485838289f2329b35b Mon Sep 17 00:00:00 2001 From: Wes Cossick Date: Tue, 14 Jul 2015 12:58:28 -0500 Subject: [PATCH] Fix README inaccuracy --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 9235c57..575fa52 100644 --- a/README.md +++ b/README.md @@ -86,27 +86,28 @@ var simplemde = new SimpleMDE({ #### Toolbar icons -Below are the available toolbar icons, which can be reorganized however you like. "Name" is just the friendly name for reference purposes. "Action" is either a function or a URL to open. "Class" is the class given to the icon. "Tooltip" is the small tooltip that appears via the `title=""` attribute. The `Ctrl` and `Alt` in the title tags will be changed automatically to their Mac equivalents when needed. Additionally, you can add a separator between any icons by adding `"|"` to the toolbar array. +Below are the available toolbar icons, which can be reorganized however you like. "Name" is the name of the icon, referenced in the JS. "Action" is either a function or a URL to open. "Class" is the class given to the icon. "Tooltip" is the small tooltip that appears via the `title=""` attribute. The `Ctrl` and `Alt` in the title tags will be changed automatically to their Mac equivalents when needed. Additionally, you can add a separator between any icons by adding `"|"` to the toolbar array. Name | Action | Class | Tooltip ---- | ------ | ----- | ----- -Bold | toggleBold | fa fa-bold | Bold (Ctrl+B) -Italic | toggleItalic | fa fa-italic | Italic (Ctrl+I) -Code | toggleCodeBlock | fa fa-code | Code (Ctrl+Alt+C) -Blockquote | 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) -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 -Preview | togglePreview | fa fa-eye | Toggle Preview (Ctrl+P) -Markdown Guide | [This link](http://nextstepwebs.github.io/simplemde-markdown-editor/markdown-guide) | fa fa-question-circle | Markdown Guide +bold | toggleBold | fa fa-bold | Bold (Ctrl+B) +italic | toggleItalic | fa fa-italic | Italic (Ctrl+I) +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) +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 +preview | togglePreview | fa fa-eye | Toggle Preview (Ctrl+P) +guide | [This link](http://nextstepwebs.github.io/simplemde-markdown-editor/markdown-guide) | fa fa-question-circle | Markdown Guide Customize the toolbar using the `toolbar` option like: ```JavaScript var simplemde = new SimpleMDE({ toolbar: [{ + name: "bold", action: toggleBold, className: "fa fa-bold", title: "Bold (Ctrl+B)",