Closed (fixed)
Project:
TinyMCE
Version:
5.x-1.x-dev
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Unassigned
Reporter:
Created:
5 May 2008 at 10:27 UTC
Updated:
24 Mar 2010 at 14:08 UTC
Jump to comment: Most recent
With IE7, if I disable the rich-text editor (default on) and then enable it, DebugBar reports this script error:
Line: 2
Character: 17287
Code: 0
Error Message: Not enough storage is available to complete this operation.TinyMCE does become re-enabled but the text disappears from the text area. I'm not sure if this is a bug within the TinyMCE module or TinyMCE itself (I am using 2.13). If it is a bug with in TinyMCE itself I may have to upgrade to version 3, but then the Drupal buttons will not work. It is always something.
Comments
Comment #1
Kripsy commentedI feel a little foolish finding the answer on the TinyMCE forums a bit after posting this, but in case someone else is looking for the solution as well here it is:
For Filename: \jscripts\tiny_mce\tiny_mce.js
Find and replace: doc.createStyleSheet(css_file) to try{doc.createStyleSheet(css_file)}catch(e){}
For Filename: \jscripts\tiny_mce\tiny_mce_src.js
Line 507:
replace: doc.createStyleSheet(css_file);
to:
try {
doc.createStyleSheet(css_file)
} catch(e) {}
Comment #2
deviantintegral commentedI ran into this as well. It seems to be related to the amount of system memory available. Is there any more information on why exactly IE dies on that call? Or anyone get that error with other javascript tools?
--Andrew
Comment #3
tonyp001 commentedThat worked!
Thanks for the tip.
Comment #4
deviantintegral commentedAs this module has been depreciated in favour of http://drupal.org/project/wysiwyg, I'm closing this issue to clean up my queue. AFAICT this is no longer an issue in the latest versions of TinyMCE.
Comment #5
Anonymous (not verified) commentedFor the record, this might be related: IE has a limit of 31 stylesheets. more