Explorar o código

Add line wrapping to code editor

Frans Bergman %!s(int64=7) %!d(string=hai) anos
pai
achega
08d415f909
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      admin/pages/edit.php

+ 1 - 0
admin/pages/edit.php

@@ -177,6 +177,7 @@
 	var editor = ace.edit("editor");
 	editor.setTheme("ace/theme/monokai");
 	editor.getSession().setMode("ace/mode/html");
+	editor.getSession().setUseWrapMode(true);
 	if (code.prop('name') === "css") {
 		editor.getSession().setMode("ace/mode/css");
 	}