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>2011-10-04 23:01:05 +0400
committerMarvin Thomas Rabe <m.rabe@echtzeitraum.de>2011-10-04 23:01:05 +0400
commit74d41b637808327bdf79acd964c424a2321cac23 (patch)
tree8297cd25696a69cf27ea98830fa120625be895e8
parentc71d28da397c901693eae0460ea3a481c2fd89d9 (diff)
fixed scrollbar issues. fixed missing breadcrumb image.
-rw-r--r--css/style.css5
-rw-r--r--js/editor.js13
2 files changed, 6 insertions, 12 deletions
diff --git a/css/style.css b/css/style.css
index 2722469..9ad6eea 100644
--- a/css/style.css
+++ b/css/style.css
@@ -1,11 +1,8 @@
#editor{
position: absoloute;
display: block;
- padding-top: 40px
-/*
- top: 41px;
+ top: 80px;
left: 160px;
-*/
}
#editorwrapper{
position: absoloute;
diff --git a/js/editor.js b/js/editor.js
index 1dd4b5d..779c292 100644
--- a/js/editor.js
+++ b/js/editor.js
@@ -1,9 +1,6 @@
function setEditorSize(){
// Sets the size of the text editor window.
- //$('#editor').css('height', $(window).height()-81);
- //$('#editor').css('height', $(window).height()-121);
- fillHeight($('#editor'));
- //$('#editor').css('width', $(window).width()-160);
+ fillWindow($('#editor'));
}
function getFileExtension(file){
@@ -13,7 +10,7 @@ function getFileExtension(file){
function setSyntaxMode(ext){
// Loads the syntax mode files and tells the editor
- var filetype = new Array()
+ var filetype = new Array();
// Todo finish these
filetype["php"] = "php";
filetype["html"] = "html";
@@ -42,7 +39,7 @@ function showControls(filename){
var html = '<input type="button" id="editor_close" value="Close">';
$('#controls').append(html);
$('#editorbar').fadeIn('slow');
- var breadcrumbhtml = '<div class="crumb svg" id="breadcrumb_file" style="background-image:url(&quot;/core/img/breadcrumb.png&quot;)"><a href="#">'+filename+'</a></div>';
+ var breadcrumbhtml = '<div class="crumb svg" id="breadcrumb_file" style="background-image:url(&quot;../core/img/breadcrumb.png&quot;)"><a href="#">'+filename+'</a></div>';
$('.actions').before(breadcrumbhtml);
$('.actions').before(savebtnhtml);
});
@@ -131,13 +128,13 @@ function showFileEditor(dir,filename){
$('#editor').attr('data-filename', filename);
window.aceEditor = ace.edit("editor");
aceEditor.setShowPrintMargin(false);
+ setEditorSize();
setSyntaxMode(getFileExtension(filename));
OC.addScript('files_texteditor','aceeditor/theme-clouds', function(){
window.aceEditor.setTheme("ace/theme/clouds");
});
});
- bindControlEvents();
- setEditorSize();
+ bindControlEvents();
// End success
}
// End ajax