Use correct CodeMirror mode for SCSS inputs
authorTim Düsterhus <duesterhus@woltlab.com>
Mon, 16 May 2022 07:42:33 +0000 (09:42 +0200)
committerTim Düsterhus <duesterhus@woltlab.com>
Mon, 16 May 2022 07:46:36 +0000 (09:46 +0200)
`sass` is the indentation based SASS syntax.

wcfsetup/install/files/acp/templates/codemirror.tpl
wcfsetup/install/files/acp/templates/styleAdd.tpl
wcfsetup/install/files/acp/templates/styleGlobalValues.tpl

index 143a45708bfb0f69c35f010fc7fb58633153461a..7f6991cad865a7cbf5771c89a8351c766c0cdb53 100644 (file)
@@ -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}
index eb77e0ccdeaffe668f8c7e54c0c0ede7dbb087a9..c1df23fe14d67b7ef33b56e2a4a799bc160e9319 100644 (file)
                                                        </dd>
                                                </dl>
                                        </section>
-                                       {include file='codemirror' codemirrorMode='sass' codemirrorSelector='#individualScssCustom, #overrideScssCustom'}
+                                       {include file='codemirror' codemirrorMode='text/x-scss' codemirrorSelector='#individualScssCustom, #overrideScssCustom'}
                                        
                                        {event name='syntaxFieldsetsCustom'}
                                </div>
                                        </dd>
                                </dl>
                        </section>
-                       {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'}
                        
index 21672808ed62c1dab26d43c621964740c0d167cc..77425b4ba5467932892c5cffe58929b3cc775717 100644 (file)
@@ -41,7 +41,7 @@
                                </small>
                        {/if}
                </dl>
-               {include file='codemirror' codemirrorMode='sass' codemirrorSelector='#styles'}
+               {include file='codemirror' codemirrorMode='text/x-scss' codemirrorSelector='#styles'}
        </div>
        
        {event name='sections'}