1

我已将 wiris 插件添加到我的 ckeditor 并进行了配置,但是当我单击它时它不显示任何内容。

var mathElements = [
    'math',
    'maction',
    'maligngroup',
    'malignmark',
    'menclose',
    'merror',
    'mfenced',
    'mfrac',
    'mglyph',
    'mi',
    'mlabeledtr',
    'mlongdiv',
    'mmultiscripts',
    'mn',
    'mo',
    'mover',
    'mpadded',
    'mphantom',
    'mroot',
    'mrow',
    'ms',
    'mscarries',
    'mscarry',
    'msgroup',
    'msline',
    'mspace',
    'msqrt',
    'msrow',
    'mstack',
    'mstyle',
    'msub',
    'msup',
    'msubsup',
    'mtable',
    'mtd',
    'mtext',
    'mtr',
    'munder',
    'munderover',
    'semantics',
    'annotation',
    'annotation-xml'
];

var toolbar = [
        {name: 'wiris', items: ['ckeditor_wiris_formulaEditor', 'ckeditor_wiris_formulaEditorChemistry']},
        {name: 'wiris', items: ['Wiris']},
    ];

    CKEDITOR.plugins.addExternal('ckeditor_wiris', ns.basePath + '/ckeditor/plugins/wiris/plugin.js', 'plugin.js');

var ckConfig = {
        extraPlugins: "image2,uploadimage,mathjax,justify,ckeditor_wiris",
        mathJaxLib: 'https://cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.4/MathJax.js?config=TeX-AMS_HTML',
        allowedContent: true,
        extraAllowedContent: mathElements.join(' ') + '(*)[*]{*};img[data-mathml,data-custom-editor,role](Wirisformula)',
         removePlugins: 'image,filetools,uploadimage,uploadwidget,uploadfile,filebrowser',
    };

当我在 ckeditor 中单击 wiris 图标时,我收到的唯一迹象是在 chrome 问题中,请在下图中看到此消息,表明它与同一站点有关

在此处输入图像描述

4

0 回答 0