SCRIPT14:没有足够的存储空间来完成此操作,IE上的ckeditor gem错误

时间:2013-03-11 06:38:03

标签: ruby-on-rails internet-explorer ckeditor

我在我的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-operationhttp://ckeditor.com/forums/Support/Not-enough-storage-error-IE7IE8),但我无法理解如何使用gem“ckeditor_rails”,“〜> 4.0在我的rails应用程序上实现它.2" 。请帮忙!

1 个答案:

答案 0 :(得分:0)

根据http://krasimirtsonev.com/blog/article/CKEditor-Not-enough-storage-is-available-to-complete-this-operation

如何实施?

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团队可能无法解决该问题。

另见https://github.com/tsechingho/ckeditor-rails/issues/17