mirror of
https://github.com/TitanEmbeds/Titan.git
synced 2024-12-23 21:47:04 +01:00
Cmd/Ctrl S Saves and submits custom css if the cursor is inside the editor
This commit is contained in:
parent
fff737cec3
commit
88a3f4c51c
@ -2,7 +2,13 @@
|
||||
(function () {
|
||||
if($("#css_editor").length != 0) {
|
||||
var editor = ace.edit("css_editor");
|
||||
debugger;
|
||||
editor.commands.addCommand({
|
||||
name: 'save',
|
||||
bindKey: {win: "Ctrl-S", "mac": "Cmd-S"},
|
||||
exec: function(editor) {
|
||||
$('#submit-btn').trigger('click');
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
function postForm() {
|
||||
|
Loading…
Reference in New Issue
Block a user