Forcing spaces instead of tabs for frontmatter

This commit is contained in:
Djamil Legato
2015-08-20 17:17:02 -07:00
parent 8aa5c0ac2f
commit 84d4e88b37

View File

@@ -22,7 +22,10 @@
((function(){
var editor = CodeMirror.fromTextArea(document.getElementById('frontmatter'), {
mode: 'yaml',
theme: 'paper'
theme: 'paper',
indentUnit: 4,
indentWithTabs: false,
extraKeys: {Tab: function(cm) { cm.replaceSelection(" ", "end"); }}
});
editor.on('change', editor.save);