Browse Source

Add line wrapping to code editor

Frans Bergman 7 năm trước cách đây
mục cha
commit
08d415f909
1 tập tin đã thay đổi với 1 bổ sung0 xóa
  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");
 	}