diff --git a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee index 5f2be06bd0..87b525120f 100644 --- a/services/web/public/coffee/ide/editor/directives/aceEditor.coffee +++ b/services/web/public/coffee/ide/editor/directives/aceEditor.coffee @@ -207,11 +207,6 @@ define [ editor.setOption("scrollPastEnd", true) - resetSession = () -> - session = editor.getSession() - session.setUseWrapMode(true) - session.setMode("ace/mode/latex") - updateCount = 0 onChange = () -> updateCount++ @@ -235,6 +230,7 @@ define [ editor.setSession(new EditSession(lines, mode)) session = editor.getSession() + session.setUseWrapMode(true) doc = session.getDocument() doc.on "change", onChange