Failed to initialize the editor as the document is not in standards mode.

1
983
Asked By William Rossbach On

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

Answered By Dan On

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

1 COMMENT

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

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.