From 888165a9fe50c10b73ffb00a53ae497d0bc5e76d Mon Sep 17 00:00:00 2001 From: Wes Cossick Date: Tue, 14 Jul 2015 12:24:42 -0500 Subject: [PATCH] Fix a bug --- source files/simplemde.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/source files/simplemde.js b/source files/simplemde.js index f91c05b..d458652 100644 --- a/source files/simplemde.js +++ b/source files/simplemde.js @@ -8,6 +8,7 @@ var shortcuts = { "Cmd-'": toggleBlockquote, 'Cmd-Alt-L': toggleOrderedList, 'Cmd-L': toggleUnorderedList, + 'Cmd-Alt-C': toggleCodeBlock, 'Cmd-P': togglePreview, }; @@ -392,50 +393,59 @@ function wordCount(data) { var toolbar = [{ + name: "bold", action: toggleBold, className: "fa fa-bold", title: "Bold (Ctrl+B)", }, { + name: "italic", action: toggleItalic, className: "fa fa-italic", title: "Italic (Ctrl+I)", }, "|", { + name: "quote", action: toggleBlockquote, className: "fa fa-quote-left", title: "Quote (Ctrl+')", }, { + name: "unordered-list", action: toggleUnorderedList, className: "fa fa-list-ul", title: "Generic List (Ctrl+L)", }, { + name: "ordered-list", action: toggleOrderedList, className: "fa fa-list-ol", title: "Numbered List (Ctrl+Alt+L)", }, "|", { + name: "link", action: drawLink, className: "fa fa-link", title: "Create Link (Ctrl+K)", }, { + name: "quote", action: drawImage, className: "fa fa-picture-o", title: "Insert Image (Ctrl+Alt+I)", }, "|", { + name: "preview", action: togglePreview, className: "fa fa-eye", title: "Toggle Preview (Ctrl+P)", }, "|", { + name: "guide", action: "http://nextstepwebs.github.io/simplemde-markdown-editor/markdown-guide", className: "fa fa-question-circle", title: "Markdown Guide",