1

我的代码如下:

<script type="text/javascript">
    SyntaxHighlighter.all();
    var options = {
        toolbars: [
            ['fullscreen', 'source', '|', 'undo', 'redo', '|', 'bold', 'italic', 'underline', 'fontborder', 'strikethrough', 'superscript', 'subscript', 'removeformat', 'formatmatch', 'autotypeset', 'blockquote', 'pasteplain', '|', 'forecolor', 'backcolor', 'insertorderedlist', 'insertunorderedlist', 'selectall', 'cleardoc', '|', 'rowspacingtop', 'rowspacingbottom', 'lineheight', '|', 'customstyle', 'paragraph', 'fontfamily', 'fontsize', '|', 'directionalityltr', 'directionalityrtl', 'indent', '|', 'justifyleft', 'justifycenter', 'justifyright', 'justifyjustify', '|', 'touppercase', 'tolowercase', '|', 'link', 'unlink', 'anchor', '|', 'imagenone', 'imageleft', 'imageright', 'imagecenter', '|', 'insertimage', 'emotion', 'scrawl', 'attachment', 'map', 'gmap', 'insertcode', 'pagebreak', '|', 'horizontal', 'date', 'time', 'spechars', 'wordimage', '|', 'inserttable', 'deletetable', 'insertparagraphbeforetable', 'insertrow', 'deleterow', 'insertcol', 'deletecol', 'mergecells', 'mergeright', 'mergedown', 'splittocells', 'splittorows', 'splittocols', '|', 'print', 'preview', 'searchreplace', 'help']
        ],
        lang: /^zh/.test(navigator.language || navigator.browserLanguage || navigator.userLanguage) ? 'zh-cn' : 'en',
        langPath: UEDITOR_HOME_URL + "lang/",

        webAppKey: "9HrmGf2ul4mlyK8ktO2Ziayd",
        initialFrameHeight: 420,
        focus: true,
        autoHeightEnabled: false
    };
    var ue = UE.getEditor('editor_solve', options);
</script>

<script type="text/javascript">
    SyntaxHighlighter.all();
    var ue = UE.getEditor('editor_code', options);
    var ue = UE.getEditor('editor_tran', options);
</script>

IE 中显示的结果是

在此处输入图像描述

最后一个 ueditor 显示正常,但第一个和第二个不能。该问题仅存在于IE浏览器中。它在 chrome 和 firefox 中运行良好。

谢谢,任何帮助请。

4

0 回答 0