Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_texteditor.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-23 23:35:48 +0400
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2012-02-23 23:36:20 +0400
commit475cb5958b488921cfa92224da6744326081367c (patch)
tree27abe5bfd238a75aa4d82cd164a271113c541ad5
parentfb8bef0869c8244aadf4bd83cd6ff52903802118 (diff)
Editor fixed.
-rw-r--r--css/style.css5
-rw-r--r--js/editor.js5
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);
});