diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-10 18:32:57 +0400 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-13 00:44:18 +0400 |
commit | 098f6655c8a2f5c1a3812dd01e6fbfbb9302f3b0 (patch) | |
tree | f198305a859a8e2a0043bf87e6cc3214fb333ef2 /apps | |
parent | bb2cba13ce93d5de08f198f87f7d23db172daf55 (diff) |
Text editor will now wrap text based on window size
Diffstat (limited to 'apps')
-rw-r--r-- | apps/files_texteditor/js/editor.js | 1 |
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); } |