You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -103,6 +103,7 @@ simplemde.value("This text will appear in the editor");
103
103
-**spellChecker**: If set to `false`, disable the spell checker. Defaults to `true`.
104
104
-**status**: If set to `false`, hide the status bar. Defaults to the array of built-in status bar items.
105
105
- 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 the `CodeMirror-selectedtext` class from selected lines. Defaults to `true`.
106
107
-**tabSize**: If set, customize the tab size. Defaults to `2`.
107
108
-**toolbar**: If set to `false`, hide the toolbar. Defaults to the [array of icons](#toolbar-icons).
108
109
-**toolbarTips**: If set to `false`, disable toolbar button tips. Defaults to `true`.
@@ -170,6 +171,7 @@ var simplemde = new SimpleMDE({
170
171
el.innerHTML=++this.keystrokes+" Keystrokes";
171
172
}
172
173
}], // Another optional usage, with a custom status bar item that counts keystrokes
174
+
styleSelectedText:false,
173
175
tabSize:4,
174
176
toolbar:false,
175
177
toolbarTips:false,
@@ -225,7 +227,7 @@ var simplemde = new SimpleMDE({
225
227
},
226
228
{
227
229
name:"custom",
228
-
action:customFunction(editor){
230
+
action:functioncustomFunction(editor){
229
231
// Add your own code
230
232
},
231
233
className:"fa fa-star",
@@ -324,6 +326,6 @@ simplemde.clearAutosavedValue(); // no returned value
324
326
```
325
327
326
328
## How it works
327
-
SimpleMDE began as an improvement of [lepture's Editor project](https://github.com/lepture/editor), but has now taken on an identity of its own. It is bundled with [CodeMirror](https://github.com/codemirror/codemirror) and depends on [Font Awesome](http://fortawesome.github.io/Font-Awesome/).
329
+
SimpleMDE began as an improvement of [lepture's Editor project](https://github.com/lepture/editor), but has now taken on an identity of its own. It is bundled with [CodeMirror](https://github.com/codemirror/codemirror) and depends on [Font Awesome](http://fontawesome.io).
328
330
329
331
CodeMirror is the backbone of the project and parses much of the Markdown syntax as it's being written. This allows us to add styles to the Markdown that's being written. Additionally, a toolbar and status bar have been added to the top and bottom, respectively. Previews are rendered by [Marked](https://github.com/chjj/marked) using GFM.
0 commit comments