Posted by danbryant on July 29, 2008 at 4:17am
7 followers
| Project: | TinyMCE |
| Version: | 5.x-1.9 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | reviewed & tested by the community |
| Issue tags: | JavaScript, rich text, tinymce, WSOD |
Issue Summary
I was getting "Whitescreens" (a whitescreen with only a "disable rich-text" link) while using your TinyMCE module (Which is awesome BTW! :-) ... THANKS!!! ) to fix it I did this:
Around line 186 in tinymce.module (version = "5.x-1.9") stock version:
else {
document.write("<div><a href=\"javascript:mceToggle('edit-$textarea_name', 'wysiwyg4$textarea_name');\" id=\"wysiwyg4$textarea_name\">$link_text</a></div>");
}My Patch:
else {
var TinyMCEArea = document.getElementById('edit-$textarea_name');
if(TinyMCEArea != null){
document.write("<div><a href=\"javascript:mceToggle('edit-$textarea_name', 'wysiwyg4$textarea_name');\" id=\"wysiwyg4$textarea_name\">$link_text</a></div>");
}
}
Comments
#1
http://drupal.org/node/235972
#2
Thanks for your reply Shane. See Comment #33 @ http://drupal.org/node/235972
#3
Yup! That fix worked for me.
#4
That patch saved me as well. Thank you very much :)
I also found that tinymce conflicted with metatags module - but now it doesn't anymore.
I didn't have this problem at all - until I installed "some module" - I'm not quite sure which one.
I found that removing the metatags module, removed the problem on all pages - but later found that if I enable tinymce on all URL's (and not just /node/ /content/ /page/ ) it breaks the editing og tinymce settings (and only that it seems).
#5
This approach worked perfectly for me. Marking RTBC for reference for people with legacy sites (although I don't expect anything to be committed to this project any more...).
#6
Works like a charm - thank you so much!
#7
Thank you so much for this patch - a lifesaver for those of us still on legacy versions
#8
I got no better results after installing this. I still get a white screen with several links to javascript code. Is there anything else I have to do after patching?
I did disable/enable the module