我有一个 AIR 应用程序,其中包含 tinyMCE js。我在 tinyMCE 工具栏上添加了一个按钮,单击该按钮会出现一个内联弹出窗口。此内联弹出窗口加载一个 url
var aa=tinyMCE.activeEditor.windowManager.open({
url : 'http://localhost/Save.html',
width : 520,
height : 340,
resizable : "yes",
inline : true,
close_previous : "yes"
});
保存.html代码:
<script src="http://www.wiris.net/demo/editor/editor"></script>
<script src="http://code.jquery.com/jquery-latest.js"></script>
<script src="../tinymce/jscripts/tiny_mce/tiny_mce_popup.js"></script>
<script>
var editor;
window.onload = function ()
{
editor = com.wiris.jsEditor.JsEditor.newInstance({'language': 'en'});
editor.insertInto(document.getElementById('editorContainer'));
}
现在的问题是----当我运行我的 AIR 应用程序时,我得到一个错误
表达式 'tinymce' [undefined] 的结果不是对象。
我怀疑是跨域问题,因为
当我在 Save.html 中发出警报时
alert(window.document.domain); returns "localhost"
当我在 AIR 应用程序 Mxml(内部)js 中发出警报时
alert(window.document.domain); returns " "
提前感谢您的任何建议和建议。