diff options
-rw-r--r-- | css/style.css | 5 | ||||
-rw-r--r-- | js/editor.js | 5 |
2 files changed, 6 insertions, 4 deletions
diff --git a/css/style.css b/css/style.css index bc238c1..e260ab0 100644 --- a/css/style.css +++ b/css/style.css @@ -1,7 +1,8 @@ #editor{ - position: absoloute; + position: fixed; display: block; - top: 2em; + top: 6.5em; + left: 12.5em; } #editorwrapper{ position: absoloute; diff --git a/js/editor.js b/js/editor.js index 7473d53..e45652b 100644 --- a/js/editor.js +++ b/js/editor.js @@ -172,6 +172,7 @@ function giveEditorFocus(){ function showFileEditor(dir,filename){ if(!editorIsShown()){ // Loads the file editor and display it. + $('#content').append('<div id="editor"></div>'); var data = $.getJSON( OC.filePath('files_texteditor','ajax','loadfile.php'), {file:filename,dir:dir}, @@ -273,10 +274,10 @@ $(document).ready(function(){ var dir=text.substr(0,text.length-file.length-1); showFileEditor(dir,file); }); - } + }; // Binds the file save and close editor events, and gotoline button bindControlEvents(); - + $('#editor').remove(); // Binds the save keyboard shortcut events //$(document).unbind('keydown').bind('keydown',checkForSaveKeyPress); }); |