当我在Firefox中使用redactor时(仅限Firefox)。
控制台一直给我一个随机脚本错误0x80004005。
例如,如果我的页面中有facebook的sdk,则错误将来自jssdk,
如果我删除sdk,错误将从Redactor.min.js到...
以下是我在Redactor.min.js
中的所有ajax内容handler: function()
{
$.ajax({
url: this.opts.handler,
type: 'post',
data: 'redactor=' + escape(encodeURIComponent(this.getCode())),
success: $.proxy(function(data)
{
this.setCode(data);
this.syncCode();
}, this)
});
},
// dragupload
if ($('#redactor_file').size() !== 0)
{
$('#redactor_file').dragupload(
{
url: this.opts.imageUpload,
success: $.proxy(this.imageUploadCallback, this)
});
}
// ajax upload
this.uploadInit('redactor_file', { auto: true, url: this.opts.imageUpload, success: $.proxy(this.imageUploadCallback, this) });
$('#redactor_upload_btn').click($.proxy(this.imageUploadCallbackLink, this));
}, this);
this.modalInit(RLANG.image, this.opts.path + '/plugins/image.html', 570, handler, true);
},
$.ajax({
dataType: 'html',
type: 'get',
url: url,
success: $.proxy(function(data)
{...