Merge pull request #2922 from uxen-ab/issue-2749-template-editing

Fixes the template editing as it was done in pull #2866 for creation.
This commit is contained in:
James Brooks
2018-03-06 08:25:35 +00:00
committed by GitHub
@@ -9,13 +9,14 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.8.0/mode/twig/twig.min.js"></script> <script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.8.0/mode/twig/twig.min.js"></script>
<script> <script>
(function() { //Initializes the editor only once the DOM is loaded.
var editor = CodeMirror.fromTextArea(document.getElementById('cm-editor'), { window.addEventListener("DOMContentLoaded", function(e) {
lineNumbers: true, var editor = CodeMirror.fromTextArea(document.getElementById('cm-editor'), {
mode: 'twig', lineNumbers: true,
lineWrapping: true mode: 'twig',
}); lineWrapping: true
}()); });
});
</script> </script>
@stop @stop