'Why is my WordPress visual editor not working?

I have website running WordPress 4.6.2 and I can't use the visual editor right now, only the text editor. When I open the browser console it show various errors.

I've been working on this problem for a good few hours and tried:

  • restoring WordPress
  • deactivating plugins
  • deactivate the custom CSS used in the site
  • Looking for can_compress_scripts in the DB and all various stuff that I stumble upon internet but with no success whatsoever
  • Used theme is Spacious
  • Include define('CONCATENATE_SCRIPTS', false); into wp-config.php
  • Replaced TinyMCE folder content with TinyMCE content from clear installation
  • A screenshot of the error from my web browser's console (below): Error from my web browser's console


Solution 1:[1]

Apparently deleting few plugins solved the problem. The weird thing is that the problematic plugins were YoastSEO and Akismet and even after their reinstall i got tons of errors too.

Solution 2:[2]

I have found a workaround or possibly the solution if you dont want to go deep into codes.

This is the fix:(It worked in my case and I am sure it can work for others with similar issue.) 1. Install Visual Composer(Wpbackery or others) 2. Go to => Role manager => Post type => custom => Select both for post and page. Thats all.

Thanks. I found this workaround that is very good and can work in other case after running into this case where I could not switch from visual editor to text editor on wordpress. I simply adjusted my WPbackery setting and everything works fine now on my site.

Before then I had tried so many solutions and even included define('CONCATENATE_SCRIPTS', to my config but to no avail.

I don't know if there is the need to explain all the things I have done on the cause of troubleshooting for this for a whole day. But with the solution I posted above it would solve your issue.

Solution 3:[3]

I was able to fix this by installing the TinyMCE Advanced Plugin, then hitting save so the settings took effect and it worked.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 ilianvasilev
Solution 2
Solution 3 DomainsFeatured