[Webinar] Learn how to a build a cloud-first strategyRegister Now

x
?
Solved

Error in IE when opening ckeditor.  "Not enough storage is available to complete this operation."

Posted on 2011-04-28
6
Medium Priority
?
2,710 Views
Last Modified: 2013-11-18
When I attempt to open ckeditor in IE, I get a console error.  MSIE Console reads as follows:
SCRIPT14: Not enough storage is available to complete this operation.
ckeditor.js, line 1234 character 17

Open in new window


Line 1234 reads as follows:
this.$.createStyleSheet(h);

Open in new window


In Context, Lines 1232-1244 read as follows:
        appendStyleSheet: function(h) {
            if (this.$.createStyleSheet)
                this.$.createStyleSheet(h);
            else {
                var i = new d.element('link');
                i.setAttributes({
                    rel: 'stylesheet',
                    type: 'text/css',
                    href: h
                });
                this.getHead().append(i);
            }
        }

Open in new window


There are multiple editors, but only one is ever created at any one time by the following script:
	<script type="text/javascript">
	
	
		// param mdfyFrm for use within functions
		var mdfyFrm;


		// click function for editable text areas
		$('.editable').click(function(mdfy) {
			
			var element = mdfy.target || mdfy.srcElement;
			element = element.parentNode;
		
			if (element.nodeName.toLowerCase() == 'div'
				 && (element.className.indexOf('editable') != -1 ))
				replaceDiv(element);
			
		});
		
		
		// replaceDiv function - replaces div with ckeditor
		function replaceDiv(element) {
			
			if (mdfyFrm) {
				mdfyFrm.destroy();
			}
			mdfyFrm = CKEDITOR.replace(element);
		}
		
		
		// removeEditor function - replaces ckeditor with div and placed content
		function removeEditor() {
			
			if (!mdfyFrm)
				return;
				
			$('.editable').innerHTML = mdfyFrm.getData();
		
			mdfyFrm.destroy();
			mdfyFrm = null;
		}

	</script>

Open in new window


If an area contains a div with the class attribute of 'editable', an editor can be created by clicking on said area.  If an editor is open and another area clicked, the open editor closes and the area which was clicked spawns an editor.  If the user 'mouses' out of the form boundaries, the removeEditor() function closes any open editors.

Hopefully, I am not the only one who has come up against this issue.  Thank you in advance for your input.
0
Comment
Question by:brianmfalls
  • 3
  • 2
6 Comments
 
LVL 1

Author Comment

by:brianmfalls
ID: 35486671
Maybe another clue???

Error: Unable to get value of the property 'destroy': object is null or undefined

Open in new window

0
 
LVL 34

Accepted Solution

by:
Big Monty earned 2000 total points
ID: 36028020
not sure if you still need help with this (doubt it) but this thread fixes the issue:

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

Expert Comment

by:ZoniacUser
ID: 39644647
if(false)this.$.createStyleSheet(k)

Open in new window

If i use this fix, its not working for IE 7,8,9
The style sheet is not added and a script error comes saying.
'$.styleSheet' is null or not an object in /ckeditor/ckeditor.js line 37 character 482
0
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 
LVL 34

Expert Comment

by:Big Monty
ID: 39645024
are you importing a lot of stylesheets? Ie has a limit on how many you can import:

http://social.msdn.microsoft.com/Forums/ie/en-US/ad1b6e88-bbfa-4cc4-9e95-3889b82a7c1d/internet-explorer-imposes-a-maximum-limit-of-32-individual-stylesheet?forum=iewebdevelopment 

If that's not the problem, I suggest opening up a new question and see if you can get other experts involved, I haven't come across that error before
0
 

Expert Comment

by:ZoniacUser
ID: 39655808
Yes Thank you, that did it.
We minimized the number of stylesheets we are importing, now its working.

We have not touched ckeditor.js.
0
 
LVL 34

Expert Comment

by:Big Monty
ID: 39656688
glad I could help :)
0

Featured Post

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
This article discusses the difference between strict equality operator and equality operator in JavaScript. The Need: Because JavaScript performs an implicit type conversion when performing comparisons, we have to take this into account when wri…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…
Suggested Courses

864 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question