remove print margin and set wrap mode to free

This commit is contained in:
Mario Vavti 2016-11-16 14:57:18 +01:00
parent da390ff573
commit de421d02ef

View File

@ -219,6 +219,8 @@
var editor = ace.edit("ace-editor"); var editor = ace.edit("ace-editor");
editor.setTheme("ace/theme/github"); editor.setTheme("ace/theme/github");
editor.setShowPrintMargin(false);
editor.getSession().setUseWrapMode('free');
editor.getSession().setMode("ace/mode/markdown"); editor.getSession().setMode("ace/mode/markdown");
editor.getSession().setValue(window.wiki_page_content); editor.getSession().setValue(window.wiki_page_content);
window.editor = editor; // Store the editor in the window object so the anonymous function can use it. window.editor = editor; // Store the editor in the window object so the anonymous function can use it.