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:
@@ -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
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user