Javascript not working in WordPress.
Visual Editor Blank with white text.
After a new wordpress installation, the visual editor would not work, the text was stuck in HTML view and displayed only white-on-white text. + javascript errors ‘switcheditors is not defined’
I found lots of posts relating to this problem but none of the suggestions worked for me.
I tried a brand new installation with no plugins installed but still no luck.
Eventually I realised that it was down to me unzipping the wordpress zip file directly to the IIS windows server. This must have been keeping the unix line breaks…. fine for PHP but corrupting the javascript files.
I fixed it by uploading the wordpress installation via FTP which sorted out the line breaks.
So if anyone else has this problem with IIS, try uploading by FTP, changing the FTP settings or using a different FTP program.

