From: Matthias Schmidt Date: Fri, 11 Jun 2021 15:30:09 +0000 (+0200) Subject: Fix CodeMirror instance with no mode X-Git-Tag: 5.5.0_Alpha_1~658 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=2ec6f55e9c9c9d1de5234156b05318139de38065;p=GitHub%2FWoltLab%2FWCF.git Fix CodeMirror instance with no mode --- diff --git a/wcfsetup/install/files/acp/templates/codemirror.tpl b/wcfsetup/install/files/acp/templates/codemirror.tpl index 594ae6f103..143a45708b 100644 --- a/wcfsetup/install/files/acp/templates/codemirror.tpl +++ b/wcfsetup/install/files/acp/templates/codemirror.tpl @@ -18,7 +18,9 @@ 'Dom/Util' ], ( CodeMirror, - CoreMirrorMode, + {if $codemirrorMode|isset} + CoreMirrorMode, + {/if} EventHandler, DomTraverse, DomUtil,