mirror of
https://github.com/BookStackApp/BookStack.git
synced 2025-06-06 02:24:33 +08:00
Migrated markdown editor actions to new cm editor
This commit is contained in:
@ -370,14 +370,8 @@ module.exports = function (ngApp, events) {
|
||||
saveDraft();
|
||||
};
|
||||
|
||||
// Listen to shortcuts coming via events
|
||||
$scope.$on('editor-keydown', (event, data) => {
|
||||
// Save shortcut (ctrl+s)
|
||||
if (data.keyCode == 83 && (navigator.platform.match("Mac") ? data.metaKey : data.ctrlKey)) {
|
||||
data.preventDefault();
|
||||
saveDraft();
|
||||
}
|
||||
});
|
||||
// Listen to save draft events from editor
|
||||
$scope.$on('save-draft', saveDraft);
|
||||
|
||||
/**
|
||||
* Discard the current draft and grab the current page
|
||||
|
Reference in New Issue
Block a user