diff --git a/CTFd/themes/admin/assets/css/codemirror.scss b/CTFd/themes/admin/assets/css/codemirror.scss index 12b46476..b5553ac4 100644 --- a/CTFd/themes/admin/assets/css/codemirror.scss +++ b/CTFd/themes/admin/assets/css/codemirror.scss @@ -1,4 +1,4 @@ @import "~codemirror/lib/codemirror.css"; .CodeMirror { - font-size: 12px; -} \ No newline at end of file + font-size: 12px; +} diff --git a/CTFd/themes/admin/assets/js/pages/configs.js b/CTFd/themes/admin/assets/js/pages/configs.js index 7ce07bf5..d40564de 100644 --- a/CTFd/themes/admin/assets/js/pages/configs.js +++ b/CTFd/themes/admin/assets/js/pages/configs.js @@ -8,7 +8,7 @@ import { default as helpers } from "core/helpers"; import $ from "jquery"; import { ezQuery, ezProgressBar } from "core/ezq"; import CodeMirror from "codemirror"; -import 'codemirror/mode/htmlmixed/htmlmixed.js'; +import "codemirror/mode/htmlmixed/htmlmixed.js"; function loadTimestamp(place, timestamp) { if (typeof timestamp == "string") { @@ -235,25 +235,19 @@ function insertTimezones(target) { } $(() => { - CodeMirror.fromTextArea( - document.getElementById("theme-header"), - { - lineNumbers: true, - lineWrapping: true, - mode: "htmlmixed", - htmlMode: true - } - ); + CodeMirror.fromTextArea(document.getElementById("theme-header"), { + lineNumbers: true, + lineWrapping: true, + mode: "htmlmixed", + htmlMode: true + }); - CodeMirror.fromTextArea( - document.getElementById("theme-footer"), - { - lineNumbers: true, - lineWrapping: true, - mode: "htmlmixed", - htmlMode: true - } - ); + CodeMirror.fromTextArea(document.getElementById("theme-footer"), { + lineNumbers: true, + lineWrapping: true, + mode: "htmlmixed", + htmlMode: true + }); insertTimezones($("#start-timezone")); insertTimezones($("#end-timezone")); diff --git a/CTFd/themes/admin/assets/js/pages/editor.js b/CTFd/themes/admin/assets/js/pages/editor.js index 83b1cb9d..2aaac442 100644 --- a/CTFd/themes/admin/assets/js/pages/editor.js +++ b/CTFd/themes/admin/assets/js/pages/editor.js @@ -4,7 +4,7 @@ import $ from "jquery"; import CTFd from "core/CTFd"; import { default as helpers } from "core/helpers"; import CodeMirror from "codemirror"; -import 'codemirror/mode/htmlmixed/htmlmixed.js'; +import "codemirror/mode/htmlmixed/htmlmixed.js"; import { ezQuery, ezToast } from "core/ezq"; function get_filetype_icon_class(filename) {