tinymce / tinymce-vue

Official TinyMCE Vue component
MIT License
2.01k stars 202 forks source link

Standard Mode issue in vuejs build #358

Open daynecoetzee opened 1 year ago

daynecoetzee commented 1 year ago

After adding this repo to my vuejs project I received the issue: Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode.

I did some investigation and found that this is due to the <!DOCTYPE html> not being present as the first tag. After checking and confirming that the tag does exist in the index.html, I discovered that somehow, during compilation this tag is being dropped when compiling the application by comparing the source code in the browser. I cannot find any further information online for as to why this happening.

exalate-issue-sync[bot] commented 1 year ago

Ref: INT-3125

lorenzo-pomili commented 1 year ago

I'd need a check, can you try to remove only tinymce-vue from your project and see if you get <!DOCTYPE html>?

If yes, can you give us a workable example (for example a Git repo) and step by step instruction to reproduce it?