remove print margin and set wrap mode to free
This commit is contained in:
parent
da390ff573
commit
de421d02ef
@ -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.
|
||||||
|
Reference in New Issue
Block a user