save properly

This commit is contained in:
yqbk
2016-08-26 11:38:17 +02:00
parent f757737606
commit cba44680ef
5 changed files with 112 additions and 37 deletions

View File

@@ -23,6 +23,15 @@ $(function() {
editor.setReadOnly($(element).data('read-only') !== undefined);
editor.setShowPrintMargin(false);
editor.setTheme(THEME);
//todo
// var textarea = $('textarea[name="2822862"]');
// alert($(element).data('file-id'));
// editor.getSession().setValue(textarea.val());
// editor.getSession().on('change', function(){
// textarea.val(editor.getSession().getValue());
// });
editor.commands.bindKey("ctrl+alt+0", null);
var session = editor.getSession();
session.setMode($(element).data('mode'));

View File

@@ -836,7 +836,6 @@ $(function() {
active_frame = frame;
$('.frame').hide();
frame.show();
};
var showOutput = function(event) {