我在我的rails应用中使用了ckeditor gem,但它在IE上不起作用。它会给出一个错误
SCRIPT14: Not enough storage is available to complete this operation.
ckeditor.js?body=1, line 63 character 140
我在谷歌上搜索它,看到了一些结果(http://krasimirtsonev.com/blog/article/CKEditor-Not-enough-storage-is-available-to-complete-this-operation和http://ckeditor.com/forums/Support/Not-enough-storage-error-IE7IE8),但我不能理解如何在我的rails应用程序上使用gem "ckeditor_rails","~> 4.0.2“来实现它。请帮帮我!
发布于 2013-03-23 15:04:47
如何实现它?
1)请将ckeditor_rails gem中的vendor/assets/javascripts/ckeditor/ckeditor.js
复制到您项目的app/assets/javascripts/ckeditor/ckeditor.js
中。
2)查找
if(this.$.createStyleSheet)this.$.createStyleSheet
并替换为
if(false)this.$.createStyleSheet
3)清理浏览器缓存,重启服务器查看是否正常。
老实说,我没有在IE上尝试过。但这就是rails资产管道的工作方式。
新版本v4.1也有这段代码。CKEDITOR团队可能无法解决该错误。
https://stackoverflow.com/questions/15332583
复制相似问题