
shortcut("Ctrl+E", function () {
    console.log("edit");
    $('#content').aloha();
});

shortcut("Ctrl+S",function() {
    var content = "";
	// iterate all dom elements which have been made aloha editable
	jQuery.each(GENTICS.Aloha.editables,function (index, editable) {
		// and get their clean and valid html5 content, and remember it to fake saving
        console.log(editable);
		content = content + editable.getContents();
	});
	// this fakes the saving of the content to your backend.
    $.post(window.location,
           { "content": content } ,
           function() { alert("saved") }
    );

});
