diff options
author | Tom Needham <needham.thomas@gmail.com> | 2012-03-10 14:32:57 +0000 |
---|---|---|
committer | Tom Needham <needham.thomas@gmail.com> | 2012-03-10 14:32:57 +0000 |
commit | dc3dd272f7bbe779fd3aceedc10bd213752d3f7f (patch) | |
tree | 465503efa2eaafe0fe6174084627aff1d4c0e56c | |
parent | 1aaf008020b2dd49d35ed3285dfa3f67c3fb6e55 (diff) | |
download | nextcloud-server-dc3dd272f7bbe779fd3aceedc10bd213752d3f7f.tar.gz nextcloud-server-dc3dd272f7bbe779fd3aceedc10bd213752d3f7f.zip |
Text editor will now wrap text based on window size
-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 085bd60be2d..73f7ee2cf6a 100644 --- a/apps/files_texteditor/js/editor.js +++ b/apps/files_texteditor/js/editor.js @@ -198,6 +198,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); } |