Fixed code listing edit
authorAlexander Ebert <ebert@woltlab.com>
Sun, 4 Jan 2015 23:27:57 +0000 (00:27 +0100)
committerAlexander Ebert <ebert@woltlab.com>
Sun, 4 Jan 2015 23:27:57 +0000 (00:27 +0100)
wcfsetup/install/files/js/3rdParty/redactor/plugins/wbbcode.js
wcfsetup/install/files/js/3rdParty/redactor/plugins/wmonkeypatch.js

index 96afe664ac0ab925e5df1efc10b7534747e737b8..dba47d0c1b9a3bc5923bac93d7d930c2fd7fa007 100644 (file)
@@ -1881,7 +1881,7 @@ RedactorPlugins.wbbcode = function() {
                                        console.debug($code);
                                        var $codeContent = '';
                                        for (var $i = 0; $i < $code.length; $i++) {
-                                               $codeContent += '<li>' + $code[$i] + '</li>';
+                                               $codeContent += '<li>' + WCF.String.escapeHTML($code[$i]) + '</li>';
                                        }
                                        $list.append($($codeContent));
                                        
index a4ae2d01271ca8aaea086434e3f7ff31147aefa3..379b987ee33bdaa2b121bc9223227614b3290515 100644 (file)
@@ -902,7 +902,7 @@ RedactorPlugins.wmonkeypatch = function() {
                                                + '<dt><label for="redactorCodeHighlighter">' + WCF.Language.get('wcf.bbcode.code.highlighter') + '</label></dt>'
                                                + '<dd>'
                                                        + '<select id="redactorCodeHighlighter">'
-                                                               + '<option value="">' + WCF.Language.get('wcf.bbcode.code.highlighter.none') + '</option>'
+                                                               + '<option value="plain">' + WCF.Language.get('wcf.bbcode.code.highlighter.none') + '</option>'
                                                                + $highlighters
                                                        + '</select>'
                                                        + '<small>' + WCF.Language.get('wcf.bbcode.code.highlighter.description') + '</small>'