mirror of
https://github.com/getgrav/grav-plugin-admin.git
synced 2025-11-14 01:06:03 +01:00
Focus on frontmatter in expert mode, fixes #134
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
var editor = CodeMirror.fromTextArea(document.getElementById('frontmatter'), {
|
||||
mode: 'yaml',
|
||||
theme: 'paper',
|
||||
{% if field.autofocus %}
|
||||
autofocus: true,
|
||||
{% endif %}
|
||||
indentUnit: 4,
|
||||
indentWithTabs: false,
|
||||
extraKeys: {Tab: function(cm) { cm.replaceSelection(" ", "end"); }}
|
||||
|
||||
Reference in New Issue
Block a user