diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index e1e348e28ac..9d168c1c4f6 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -221,6 +221,10 @@ function showFileEditor(dir,filename){ document.title = $('#editor').attr('data-filename')+' * - ownCloud'; } }); + // Add the ctrl+s event + window.aceEditor.commands.addCommand({ name: "save", bindKey: { win: "Ctrl-S", mac: "Command-S", sender: "editor" }, exec: function(){ + doFileSave(); + } }); }); } else { // Failed to get the file.