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
Comment #1
shane birley commentedhttp://drupal.org/node/235972
Comment #2
danbryant commentedThanks for your reply Shane. See Comment #33 @ http://drupal.org/node/235972
Comment #3
shane birley commentedYup! That fix worked for me.
Comment #4
klavs commentedThat 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).
Comment #5
owen barton commentedThis 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...).
Comment #6
kirikintha commentedWorks like a charm - thank you so much!
Comment #7
csc4 commentedThank you so much for this patch - a lifesaver for those of us still on legacy versions
Comment #8
Vietyank commentedI 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
Comment #9
shane birley commentedComment #10
shane birley commented