diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js index 0e3e9776e11..8a23062748a 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -134,7 +134,6 @@ function showFileEditor(dir,filename){ window.aceEditor.setTheme("ace/theme/clouds"); }); }); - bindControlEvents(); // End success } // End ajax @@ -163,4 +162,8 @@ function hideFileEditor(){ $(window).resize(function() { setEditorSize(); +}); + +$(document).ready(function() { + bindControlEvents(); }); \ No newline at end of file