javascript - WIRIS插件不显示任何公式
问题描述
我已将 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 问题中,请在下图中看到此消息,表明它与同一站点有关
解决方案
推荐阅读
- ajax - 无法从 ajax 打印或回显控制器中的 post 值
- php - 如何设置 cookie_httponly?
- sql - 如何在 Snowflake 的 WHERE 子句中编写 CASE 语句
- excel - 欧元货币符号潜入解析的 excel 输出
- delphi - 迁移到 10.4 悉尼后的 Delphi Indy SSL 错误
- javascript - 投票支持报告不和谐机器人
- iteration - 逻辑应用中的迭代提前终止
- java - 无法使用 javac 运行 java 文件
- kdb - q/kdb+ 中的 WTD、MTD、YTD 查询,带有 by 子句
- javascript - 是否可以通过更改类列表状态以某种方式缩短代码