Hi All I am using tinymce 5.1.3 version and trying to implement a new textarea using javascript but while implementing it in our application I am getting the below error
"tinymce.min.js:9 Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode".
Previous I was using the 3.5.11 version of tinymce but i was getting formatting issue like my output text was coming in html format after doing the save by clicking on save button which is provided by the tinymce editor
e.g:- "Hello alll " will come like this <p><b>Hello alll</b></p>
There I resolve the coming of <p> tag by using force_root_block =" ",
but the other rich text syntax like bold and italic was coming in the same way and no solution worked for me even getContent method also not worked .Is it a version issue of Tinymce???
So Trying to implement the newer version but again the below error is coming and i am stopped here..
"tinymce.min.js:9 Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode".
I am writting the below code for the new version:
<script type="text/javascript" src="/wps/themes/html/ACSDefault/scripts/tinymce/tinymce.min.js"></script>
<script type="text/javascript">
tinyMCE.init({
mode:"specific_textareas",
editor_selector : "tinymce"
});
</script>
Please suggest some solution that can resolve my issue.
I got the same issue, even though I have included the DOCTYPE and is formatted in proper HTML5 format. But, I forgot to add a closing </div> somewhere in the page and hence it threw that error. Fixing it solved the issue.