mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2026-07-12 23:32:40 +02:00
Forcing spaces instead of tabs for frontmatter
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user