Text editor will now wrap text based on window size
This commit is contained in:
parent
1aaf008020
commit
dc3dd272f7
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue