2017-04-08 46 views
0

我跟着this tutorial上的Drupal新安裝的安裝Wiris插件。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); 

我不知道該如何處理這個問題。

+0

你有沒有想過這個?我正在經歷同樣的事情。 – Matt

+0

對不起,哥們,還沒有找到解決辦法 – sisko

回答

0

我沒有一個完整的修復,但我能得到它與我的dev箱的基本路徑替換_wrs_conf_path本地工作。 _wrs_conf_path正在評估到插件文件夾的相對路徑。

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

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

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

編輯:我將_wrs_conf_path替換爲其內部變量之一_wrs_currentPath,似乎解決了這個問題。