diff --git a/site/plugins/admin/views/partials/tail.php b/site/plugins/admin/views/partials/tail.php index 924ab11f..d07d0728 100755 --- a/site/plugins/admin/views/partials/tail.php +++ b/site/plugins/admin/views/partials/tail.php @@ -134,20 +134,21 @@ use Flextype\Component\{Http\Http, Event\Event, Registry\Registry, Assets\Assets $.validate({}); + var editor = CodeMirror.fromTextArea(document.getElementById("codeMirrorEditor"), { lineNumbers: true, - + indentUnit: 2, tabSize: 2, - + tabSize: 4, indentUnit: 4, - - + + mode: "yaml", - + mode: "application/x-httpd-php", - + indentWithTabs: false, theme: "elegant", @@ -177,6 +178,7 @@ use Flextype\Component\{Http\Http, Event\Event, Registry\Registry, Assets\Assets cm.indentSelection("subtract"); } }); + });