I have the default tinymce snipped of code on my page. This script was used in the example on the website so I would think there are no syntax errors or anything with it. Regardless, whenever I load the page, the editor does not load and I get the error "Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode.". What is causing this and how do i fix it?
1 Answer
check the html document to make sure there isnt something before the opening html tag. in my case there was a style tag that came before the html declaration. <!DOCTYPE html> was missing from the document too
Had the same problem it turned out that if you echo anything in the heading PHP section (ie for testing purposes) before the tag, it will cause TonyMCE to fail.
Related Questions
Set Wordpress Featured Image Using Javascript
How To Fix PHP Random Being The Same
Why no WebP Support with Wordpress
Replace Wordpress Cron With Linux Cron
Customize Yoast Canonical URL Programmatically
[Centos] Delete All Files And Folders That Contain a String