diff --git a/webapp/titanembeds/static/js/usercss.js b/webapp/titanembeds/static/js/usercss.js index 31d7f47..489ae7a 100644 --- a/webapp/titanembeds/static/js/usercss.js +++ b/webapp/titanembeds/static/js/usercss.js @@ -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() {