🐛 Fixed syntax highlighting inside Code Injection inputs

no issue
- the CodeMirror and theme styles were not being correctly loaded
This commit is contained in:
Kevin Ansfield 2019-04-29 17:57:41 +02:00
parent 99375f73f4
commit 824e668354
1 changed files with 2 additions and 1 deletions

View File

@ -25,7 +25,6 @@ const assetLocation = function (fileName) {
const codemirrorAssets = function () {
let codemirrorFiles = [
'theme/xq-light.css',
'lib/codemirror.js',
'mode/htmlmixed/htmlmixed.js',
'mode/xml/xml.js',
@ -221,6 +220,8 @@ module.exports = function (defaults) {
// 'dem Styles
// import codemirror + simplemde styles rather than lazy-loading so that
// our overrides work correctly
app.import('node_modules/codemirror/lib/codemirror.css');
app.import('node_modules/codemirror/theme/xq-light.css');
app.import('node_modules/simplemde/dist/simplemde.min.css');
// 'dem Scripts