Added 'code' button to default toolbar

My team thought that 'code' button is not even implemented in SimpleMDE, because they didn't see it on the demo page.
I think 'code' button is one the most important tools of markdown editors, so why not add it by default in the toolbar :)
pull/154/head
Darth Vanger 9 years ago
parent 0e6e466346
commit b699de8d65

@ -836,7 +836,7 @@ function SimpleMDE(options) {
/**
* Default toolbar elements.
*/
SimpleMDE.toolbar = ["bold", "italic", "heading", "|", "quote", "unordered-list", "ordered-list", "|", "link", "image", "|", "preview", "side-by-side", "fullscreen", "guide"];
SimpleMDE.toolbar = ["bold", "italic", "heading", "|", "code", "quote", "unordered-list", "ordered-list", "|", "link", "image", "|", "preview", "side-by-side", "fullscreen", "guide"];
/**
* Default markdown render.

Loading…
Cancel
Save