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:
@ -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";
|
||||
};
|
||||
|
||||
|
Reference in New Issue
Block a user