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

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/apps
diff options
context:
space:
mode:
authorTom Needham <needham.thomas@gmail.com>2012-03-10 18:32:57 +0400
committerTom Needham <needham.thomas@gmail.com>2012-03-13 00:44:18 +0400
commit098f6655c8a2f5c1a3812dd01e6fbfbb9302f3b0 (patch)
treef198305a859a8e2a0043bf87e6cc3214fb333ef2 /apps
parentbb2cba13ce93d5de08f198f87f7d23db172daf55 (diff)
Text editor will now wrap text based on window size
Diffstat (limited to 'apps')
-rw-r--r--apps/files_texteditor/js/editor.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/apps/files_texteditor/js/editor.js b/apps/files_texteditor/js/editor.js
index 7473d532304..d4852d47a42 100644
--- a/apps/files_texteditor/js/editor.js
+++ b/apps/files_texteditor/js/editor.js
@@ -191,6 +191,7 @@ function showFileEditor(dir,filename){
$('#editor').attr('data-filename', filename);
window.aceEditor = ace.edit("editor");
aceEditor.setShowPrintMargin(false);
+ aceEditor.getSession().setUseWrapMode(true);
if(result.data.write=='false'){
aceEditor.setReadOnly(true);
}