Skip to content

Commit 4eec6e6

Browse files
author
Wes Cossick
committed
Document showIcons; Tweak other wording
1 parent d30d9b7 commit 4eec6e6

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,7 @@ simplemde.value("This text will appear in the editor");
7777
- **bold** Can be set to `**` or `__`. Defaults to `**`.
7878
- **italic** Can be set to `*` or `_`. Defaults to `*`.
7979
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
80-
- **hideIcons**: An array of icon names to hide. Can be used to hide specific icons without completely customizing the toolbar.
80+
- **hideIcons**: An array of icon names to hide. Can be used to hide specific icons shown by default without completely customizing the toolbar.
8181
- **indentWithTabs**: If set to `false`, indent using spaces instead of tabs. Defaults to `true`.
8282
- **initialValue**: If set, will customize the initial value of the editor.
8383
- **insertTexts**: Customize how certain buttons that insert text behave. Takes an array with two elements. The first element will be the text inserted before the cursor or highlight, and the second element will be inserted after. For example, this is the default link value: `["[", "](http://)"]`.
@@ -94,6 +94,7 @@ simplemde.value("This text will appear in the editor");
9494
- **renderingConfig**: Adjust settings for parsing the Markdown during previewing (not editing).
9595
- **singleLineBreaks**: If set to `false`, disable parsing GFM single line breaks. Defaults to `true`.
9696
- **codeSyntaxHighlighting**: If set to `true`, will highlight using [highlight.js](https://github.com/isagalaev/highlight.js). Defaults to `false`. To use this feature you must include highlight.js on your page. For example, include the script and the CSS files like:<br>`<script src="https://cdn.jsdelivr.net/highlight.js/latest/highlight.min.js"></script>`<br>`<link rel="stylesheet" href="https://cdn.jsdelivr.net/highlight.js/latest/styles/github.min.css">`
97+
- **showIcons**: An array of icon names to show. Can be used to show specific icons hidden by default without completely customizing the toolbar.
9798
- **spellChecker**: If set to `false`, disable the spell checker. Defaults to `true`.
9899
- **status**: If set to `false`, hide the status bar. Defaults to `true`.
99100
- Optionally, you can set an array of status bar elements to include, and in what order.
@@ -144,6 +145,7 @@ var simplemde = new SimpleMDE({
144145
singleLineBreaks: false,
145146
codeSyntaxHighlighting: true,
146147
},
148+
showIcons: ["code", "table"],
147149
spellChecker: false,
148150
status: false,
149151
status: ["autosave", "lines", "words", "cursor"], // Optional usage
@@ -174,8 +176,8 @@ unordered-list | toggleUnorderedList | Generic List (Ctrl+L)<br>fa fa-list-ul
174176
ordered-list | toggleOrderedList | Numbered List (Ctrl+Alt+L)<br>fa fa-list-ol
175177
link | drawLink | Create Link (Ctrl+K)<br>fa fa-link
176178
image | drawImage | Insert Image (Ctrl+Alt+I)<br>fa fa-picture-o
177-
horizontal-rule | drawHorizontalRule | Insert Horizontal Line<br>fa fa-minus
178179
table | drawTable | Insert Table<br>fa fa-table
180+
horizontal-rule | drawHorizontalRule | Insert Horizontal Line<br>fa fa-minus
179181
preview | togglePreview | Toggle Preview (Ctrl+P)<br>fa fa-eye no-disable
180182
side-by-side | toggleSideBySide | Toggle Side by Side (F9)<br>fa fa-columns no-disable no-mobile
181183
fullscreen | toggleFullScreen | Toggle Fullscreen (F11)<br>fa fa-arrows-alt no-disable no-mobile

0 commit comments

Comments
 (0)