Skip to content
Permalink
Browse files

changed default editor from html to plaintext

This needs to be detected automagically later
  • Loading branch information...
dries007 committed Oct 12, 2014
1 parent 11af94d commit f73e805d240414918557aa0d1959a65c684f0b38
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/main/resources/templates/editors/ace.ftl
@@ -11,7 +11,10 @@
<script>
var editor = ace.edit("editor");
editor.setTheme("ace/theme/chrome");
editor.getSession().setMode("ace/mode/html");
/**
* TODO: Make proper lang detection with manual override on the page itself. (dropdown?) See http://ajaxorg.github.io/ace-builds/kitchen-sink.html
* editor.getSession().setMode("ace/mode/html");
*/
editor.getSession().setTabSize(4);
editor.getSession().setUseSoftTabs(true);
editor.setShowPrintMargin(false);

0 comments on commit f73e805

Please sign in to comment.
You can’t perform that action at this time.