Skip to content

Commit 6ed8344

Browse files
committed
Fix documentation for styleSelectedText
1 parent 2f4e7e4 commit 6ed8344

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

README.md

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,10 +103,10 @@ simplemde.value("This text will appear in the editor");
103103
- **spellChecker**: If set to `false`, disable the spell checker. Defaults to `true`.
104104
- **status**: If set to `false`, hide the status bar. Defaults to the array of built-in status bar items.
105105
- Optionally, you can set an array of status bar items to include, and in what order. You can even define your own custom status bar items.
106+
- **styleSelectedText**: If set to `false`, remove `.CodeMirror-selectedtext` class from selected lines. Defaults to `true`.
106107
- **tabSize**: If set, customize the tab size. Defaults to `2`.
107108
- **toolbar**: If set to `false`, hide the toolbar. Defaults to the [array of icons](#toolbar-icons).
108109
- **toolbarTips**: If set to `false`, disable toolbar button tips. Defaults to `true`.
109-
- **styleSelectedText**: If set to `false`, remove `.CodeMirror-selectedtext` class from selected lines. Defaults to `true`.
110110

111111
```JavaScript
112112
// Most options demonstrate the non-default behavior
@@ -171,6 +171,7 @@ var simplemde = new SimpleMDE({
171171
el.innerHTML = ++this.keystrokes + " Keystrokes";
172172
}
173173
}], // Another optional usage, with a custom status bar item that counts keystrokes
174+
styleSelectedText: false,
174175
tabSize: 4,
175176
toolbar: false,
176177
toolbarTips: false,

0 commit comments

Comments
 (0)