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