Skip to content

Commit 047c0ef

Browse files
committed
Merge pull request sparksuite#228 from brondsem/context_aware_code_block_button
Context aware code button
2 parents 99e4cba + 0166b2b commit 047c0ef

File tree

3 files changed

+293
-10
lines changed

3 files changed

+293
-10
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -75,6 +75,7 @@ simplemde.value("This text will appear in the editor");
7575
- **uniqueId**: You must set a unique string identifier so that SimpleMDE can autosave. Something that separates this from other instances of SimpleMDE elsewhere on your website.
7676
- **blockStyles**: Customize how certain buttons that style blocks of text behave.
7777
- **bold** Can be set to `**` or `__`. Defaults to `**`.
78+
- **code** Can be set to ```` ``` ```` or `~~~`. Defaults to ```` ``` ````.
7879
- **italic** Can be set to `*` or `_`. Defaults to `*`.
7980
- **element**: The DOM element for the textarea to use. Defaults to the first textarea on the page.
8081
- **hideIcons**: An array of icon names to hide. Can be used to hide specific icons shown by default without completely customizing the toolbar.

0 commit comments

Comments
 (0)