I had the same problem with my visual editor when I upgraded to version 3.5 and to fix it I tried this and worked:
I did take the old version of wordpress that was on localhost in my desktop and I replaced the directories:
wp-admin
wp-includes
and all files out of directories, including the file: wp-config.php
After this I also replaced the directories in wp-content:
languanges
plugins
upgrade
and the file index.php in wp-content >>> index.php
After all, I changed the informations of the file wp-config.php to connect my database on web.
Now my visual editor it’s working… ??