From b699de8d65e2ad5d21719af70e456a97e45b4334 Mon Sep 17 00:00:00 2001 From: Darth Vanger Date: Tue, 3 Nov 2015 18:43:12 +0200 Subject: [PATCH] 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 :) --- src/js/simplemde.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/simplemde.js b/src/js/simplemde.js index 09efa05..26721d5 100644 --- a/src/js/simplemde.js +++ b/src/js/simplemde.js @@ -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.