Drupal 7 Drupal-Wiris集成

Drupal 7 Drupal-Wiris集成,drupal-7,ckeditor,mathml,Drupal 7,Ckeditor,Mathml,我随后在新安装的Drupal上安装了Wiris插件 安装完成后,我单击Wiris图标开始添加公式,弹出窗口不会加载,控制台区域出现以下错误: Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '/DrupalQuiz/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/' in a call to 'postMess

我随后在新安装的Drupal上安装了Wiris插件

安装完成后,我单击Wiris图标开始添加公式,弹出窗口不会加载,控制台区域出现以下错误:

Uncaught DOMException: Failed to execute 'postMessage' on 'Window': Invalid target origin '/DrupalQuiz/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/' in a call to 'postMessage'.
at http://*.*.*.*/DrupalQuiz/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/core/core.js:19:22
导致问题的代码如下所示:

e.source.postMessage(postVariable, _wrs_conf_path);

我不知道如何处理这个问题。

我没有一个完整的解决方案,但我能够通过将
\u wrs\u conf\u path
替换为我的开发框的基本路径,使它在本地工作<代码>\u wrs\u conf\u path正在计算插件文件夹的相对路径

if(typeof(e.source)!='undefined'){
e、 postMessage(postVariable,_wrs_conf_path);
}

if(typeof(e.source)!=“未定义”){
e、 source.postMessage(postVariable,_wrs_currentPath);
}

在/sites/all/libraries/ckeditor/plugins/ckeditor_wiris/core/core.js文件中


编辑:我将
\u wrs\u conf\u path
替换为它们的一个内部变量
\u wrs\u currentPath
,这似乎解决了问题。

你有没有想过这个问题?我也经历了同样的事情。对不起,伙计,还没有找到解决办法