Set tab size in text editor to match default HTML

The default HTML in a new site’s `index.html` and `not_found.html` has 2-space indents. Setting the editor to match that makes the page easier to edit, because the user can use the Tab key for indentation.

This change is untested. The API call was copied from https://github.com/ajaxorg/ace/wiki/Embedding-API.
This commit is contained in:
Rory O’Kane 2013-06-21 22:20:25 -03:00
parent 3a1bdb38fd
commit 63614b6f50

View file

@ -114,6 +114,7 @@ javascript:
editor = ace.edit("editor");
setTheme();
editor.getSession().setMode("ace/mode/html");
editor.getSession().setTabSize(2);
editor.setFontSize(14);
editor.setShowPrintMargin(false);
});