1

我使用所见即所得的 Redactor js (wysiwyg jquery),但我遇到了 firefox 的问题。 http://redactorjs.com/ 当我像这样运行插件时

$ ('# news_content'). redactor ({focus: true});

萤火虫给我这个错误:

Returned Component failure code: 0x80004005 (NS_ERROR_FAILURE) [nsIDOMHTMLDocument.execCommand]
this.doc.execCommand ("useCSS", false, true);

它在 Chrome、IE、Opera 上运行良好,但在 firefox 上运行良好对我的问题有什么想法吗?非常感谢您的回复

4

1 回答 1

0

确保您已将该语句包装在一个准备好的处理程序中,如下所示:

$(function(){
    $ ('# news_content'). redactor ({focus: true});
});

这是由 Ajax 安全策略引起的。

组件返回故障码:0x80004005

组件返回故障码:0x80004005

都是描述问题的两个问题。

于 2012-07-04T19:47:25.770 回答