Use AJAX button click for cmd-s hotkey. Fixes 1356 (#1361)
This commit is contained in:
@@ -83,8 +83,8 @@
|
||||
editor.commands.addCommand({
|
||||
name: "saveContents",
|
||||
bindKey: {win: "Ctrl-s", mac: "Command-s"},
|
||||
exec: function(editor) {
|
||||
$('#gollum-editor form[name="gollum-editor"]').submit();
|
||||
exec: function() {
|
||||
$("#gollum-editor-submit").trigger("click");
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
Reference in New Issue
Block a user