我在我的rails应用程序中使用ckeditor gem并且它不在IE上工作。它给出了一个错误
SCRIPT14: Not enough storage is available to complete this operation.
ckeditor.js?body=1, line 63 character 140
我在google上搜索并查看了一些结果(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),但我无法理解如何使用gem“ckeditor_rails”,“〜> 4.0在我的rails应用程序上实现它.2" 。请帮忙!
答案 0 :(得分:0)
如何实施?
1)请将vendor/assets/javascripts/ckeditor/ckeditor.js
从ckeditor_rails gem复制到项目的app/assets/javascripts/ckeditor/ckeditor.js
。
2)找到
if(this.$.createStyleSheet)this.$.createStyleSheet
并替换为
if(false)this.$.createStyleSheet
3)清理浏览器的缓存并重新启动服务器以查看它是否有效。
说实话,我不试试IE。但这就是铁路资产管道的运作方式。新版本v4.1也有这段代码。 CKEDITOR团队可能无法解决该问题。