mirror of
https://github.com/sparksuite/simplemde-markdown-editor.git
synced 2024-06-26 09:20:01 +02:00
Fix a bug
This commit is contained in:
parent
148a3efadf
commit
888165a9fe
|
@ -8,6 +8,7 @@ var shortcuts = {
|
||||||
"Cmd-'": toggleBlockquote,
|
"Cmd-'": toggleBlockquote,
|
||||||
'Cmd-Alt-L': toggleOrderedList,
|
'Cmd-Alt-L': toggleOrderedList,
|
||||||
'Cmd-L': toggleUnorderedList,
|
'Cmd-L': toggleUnorderedList,
|
||||||
|
'Cmd-Alt-C': toggleCodeBlock,
|
||||||
'Cmd-P': togglePreview,
|
'Cmd-P': togglePreview,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
@ -392,50 +393,59 @@ function wordCount(data) {
|
||||||
|
|
||||||
|
|
||||||
var toolbar = [{
|
var toolbar = [{
|
||||||
|
name: "bold",
|
||||||
action: toggleBold,
|
action: toggleBold,
|
||||||
className: "fa fa-bold",
|
className: "fa fa-bold",
|
||||||
title: "Bold (Ctrl+B)",
|
title: "Bold (Ctrl+B)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
name: "italic",
|
||||||
action: toggleItalic,
|
action: toggleItalic,
|
||||||
className: "fa fa-italic",
|
className: "fa fa-italic",
|
||||||
title: "Italic (Ctrl+I)",
|
title: "Italic (Ctrl+I)",
|
||||||
},
|
},
|
||||||
"|",
|
"|",
|
||||||
{
|
{
|
||||||
|
name: "quote",
|
||||||
action: toggleBlockquote,
|
action: toggleBlockquote,
|
||||||
className: "fa fa-quote-left",
|
className: "fa fa-quote-left",
|
||||||
title: "Quote (Ctrl+')",
|
title: "Quote (Ctrl+')",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
name: "unordered-list",
|
||||||
action: toggleUnorderedList,
|
action: toggleUnorderedList,
|
||||||
className: "fa fa-list-ul",
|
className: "fa fa-list-ul",
|
||||||
title: "Generic List (Ctrl+L)",
|
title: "Generic List (Ctrl+L)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
name: "ordered-list",
|
||||||
action: toggleOrderedList,
|
action: toggleOrderedList,
|
||||||
className: "fa fa-list-ol",
|
className: "fa fa-list-ol",
|
||||||
title: "Numbered List (Ctrl+Alt+L)",
|
title: "Numbered List (Ctrl+Alt+L)",
|
||||||
},
|
},
|
||||||
"|",
|
"|",
|
||||||
{
|
{
|
||||||
|
name: "link",
|
||||||
action: drawLink,
|
action: drawLink,
|
||||||
className: "fa fa-link",
|
className: "fa fa-link",
|
||||||
title: "Create Link (Ctrl+K)",
|
title: "Create Link (Ctrl+K)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
name: "quote",
|
||||||
action: drawImage,
|
action: drawImage,
|
||||||
className: "fa fa-picture-o",
|
className: "fa fa-picture-o",
|
||||||
title: "Insert Image (Ctrl+Alt+I)",
|
title: "Insert Image (Ctrl+Alt+I)",
|
||||||
},
|
},
|
||||||
"|",
|
"|",
|
||||||
{
|
{
|
||||||
|
name: "preview",
|
||||||
action: togglePreview,
|
action: togglePreview,
|
||||||
className: "fa fa-eye",
|
className: "fa fa-eye",
|
||||||
title: "Toggle Preview (Ctrl+P)",
|
title: "Toggle Preview (Ctrl+P)",
|
||||||
},
|
},
|
||||||
"|",
|
"|",
|
||||||
{
|
{
|
||||||
|
name: "guide",
|
||||||
action: "http://nextstepwebs.github.io/simplemde-markdown-editor/markdown-guide",
|
action: "http://nextstepwebs.github.io/simplemde-markdown-editor/markdown-guide",
|
||||||
className: "fa fa-question-circle",
|
className: "fa fa-question-circle",
|
||||||
title: "Markdown Guide",
|
title: "Markdown Guide",
|
||||||
|
|
Loading…
Reference in a new issue