Text editor will now wrap text based on window size

This commit is contained in:
Tom Needham 2012-03-10 14:32:57 +00:00
parent 1aaf008020
commit dc3dd272f7

View file

@ -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);
}