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>");
	}
  }
CommentFileSizeAuthor
#5 288424.patch937 bytesowen barton

Comments

shane birley’s picture

Status: Active » Closed (duplicate)
danbryant’s picture

Priority: Critical » Normal
Status: Closed (duplicate) » Needs review

Thanks for your reply Shane. See Comment #33 @ http://drupal.org/node/235972

shane birley’s picture

Yup! That fix worked for me.

klavs’s picture

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).

owen barton’s picture

Title: Whitescreen Of Death ... sorta! » Javascript WSOD - "enable/disable rich-text" on it's own replacing entire page
Status: Needs review » Reviewed & tested by the community
StatusFileSize
new937 bytes

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...).

kirikintha’s picture

Works like a charm - thank you so much!

csc4’s picture

Issue tags: +JavaScript, +WSOD, +tinymce, +rich text

Thank you so much for this patch - a lifesaver for those of us still on legacy versions

Vietyank’s picture

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

shane birley’s picture

Issue summary: View changes
Status: Reviewed & tested by the community » Fixed
shane birley’s picture

Status: Fixed » Closed (fixed)