1
0
mirror of https://github.com/BookStackApp/BookStack.git synced 2025-07-30 04:23:11 +03:00

Migrated markdown editor actions to new cm editor

This commit is contained in:
Dan Brown
2017-07-02 19:35:13 +01:00
parent f101e4f010
commit 69c50b9b48
4 changed files with 119 additions and 153 deletions

View File

@ -169,6 +169,10 @@ module.exports.markdownEditor = function(elem) {
theme: 'base16-light',
lineWrapping: true
});
};
module.exports.getMetaKey = function() {
let mac = CodeMirror.keyMap["default"] == CodeMirror.keyMap.macDefault;
return mac ? "Cmd" : "Ctrl";
};