From: Tim Düsterhus Date: Mon, 16 May 2022 07:42:33 +0000 (+0200) Subject: Use correct CodeMirror mode for SCSS inputs X-Git-Tag: 5.5.0_Beta_3~25 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8073d2fc6d29ac4a1e72149c587c15ca1f0adf93;p=GitHub%2FWoltLab%2FWCF.git Use correct CodeMirror mode for SCSS inputs `sass` is the indentation based SASS syntax. --- diff --git a/wcfsetup/install/files/acp/templates/codemirror.tpl b/wcfsetup/install/files/acp/templates/codemirror.tpl index 143a45708b..7f6991cad8 100644 --- a/wcfsetup/install/files/acp/templates/codemirror.tpl +++ b/wcfsetup/install/files/acp/templates/codemirror.tpl @@ -9,6 +9,8 @@ {elseif $codemirrorMode === 'text/x-less'} {* deprecated, legacy support *} 'codemirror/mode/css/css', + {elseif $codemirrorMode === 'text/x-scss'} + 'codemirror/mode/css/css', {else} 'codemirror/mode/{@$codemirrorMode}/{@$codemirrorMode}', {/if} diff --git a/wcfsetup/install/files/acp/templates/styleAdd.tpl b/wcfsetup/install/files/acp/templates/styleAdd.tpl index eb77e0ccde..c1df23fe14 100644 --- a/wcfsetup/install/files/acp/templates/styleAdd.tpl +++ b/wcfsetup/install/files/acp/templates/styleAdd.tpl @@ -1107,7 +1107,7 @@ - {include file='codemirror' codemirrorMode='sass' codemirrorSelector='#individualScssCustom, #overrideScssCustom'} + {include file='codemirror' codemirrorMode='text/x-scss' codemirrorSelector='#individualScssCustom, #overrideScssCustom'} {event name='syntaxFieldsetsCustom'} @@ -1156,7 +1156,7 @@ - {include file='codemirror' codemirrorMode='sass' codemirrorSelector='#individualScss, #overrideScss' editable=$isTainted} + {include file='codemirror' codemirrorMode='text/x-scss' codemirrorSelector='#individualScss, #overrideScss' editable=$isTainted} {event name='syntaxFieldsetsOriginal'} diff --git a/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl b/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl index 21672808ed..77425b4ba5 100644 --- a/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl +++ b/wcfsetup/install/files/acp/templates/styleGlobalValues.tpl @@ -41,7 +41,7 @@ {/if} - {include file='codemirror' codemirrorMode='sass' codemirrorSelector='#styles'} + {include file='codemirror' codemirrorMode='text/x-scss' codemirrorSelector='#styles'} {event name='sections'}