Explorar el Código

Add line wrapping to code editor

Frans Bergman hace 7 años
padre
commit
08d415f909
Se han modificado 1 ficheros con 1 adiciones y 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");
 	}