Tweak ShortcutsArray definition for simplemde (#17944)

This commit is contained in:
Bas Bosman
2017-07-17 19:47:49 +02:00
committed by Andy
parent 7ef13ce8d0
commit b15d47c31d
2 changed files with 3 additions and 2 deletions

View File

@@ -35,7 +35,7 @@ declare namespace SimpleMDE {
}
interface ShortcutsArray {
[action: string]: string;
[action: string]: string|undefined;
toggleBlockquote?: string;
toggleBold?: string;
cleanBlock?: string;

View File

@@ -57,7 +57,8 @@ function testSimplemde() {
codeSyntaxHighlighting: true
},
shortcuts: {
drawTable: "Cmd-Alt-T"
drawTable: "Cmd-Alt-T",
toggleCodeBlock: null
},
showIcons: ["code", "table"],
spellChecker: false,