mirror of
https://github.com/CachetHQ/Cachet.git
synced 2025-02-24 03:34:12 +01:00
Merge pull request #2866 from uxen-ab/incident-template-creation-not-working
Makes the editor focusable.
This commit is contained in:
commit
b660468a56
@ -9,13 +9,14 @@
|
||||
<script src="https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.8.0/mode/twig/twig.min.js"></script>
|
||||
|
||||
<script>
|
||||
(function() {
|
||||
var editor = CodeMirror.fromTextArea(document.getElementById('cm-editor'), {
|
||||
lineNumbers: true,
|
||||
mode: 'twig',
|
||||
lineWrapping: true
|
||||
});
|
||||
}());
|
||||
//Initializes the editor only once the DOM is loaded.
|
||||
window.addEventListener("DOMContentLoaded", function(e) {
|
||||
var editor = CodeMirror.fromTextArea(document.getElementById('cm-editor'), {
|
||||
lineNumbers: true,
|
||||
mode: 'twig',
|
||||
lineWrapping: true
|
||||
});
|
||||
});
|
||||
</script>
|
||||
@stop
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user