Experienced upgrading to TinyMCE 5 with Laravel 5.7 and Laracasts\Utilities.
TinyMCE used in views along with Laracasts\Utilities\Javascript will not initialize.
Error states that the document is not in standards mode.
This is due to Laracasts\Utilities\Javascript causing the document source to appear as follows:
Thus DOCTYPE is not specified first in the document.
Nasty hack fix, replace echo in LaravelViewBinder with:
echo "\n\n";
to add an additional DOCTYPE at the start of the document
But can we do better?
Experienced upgrading to TinyMCE 5 with Laravel 5.7 and Laracasts\Utilities.
TinyMCE used in views along with Laracasts\Utilities\Javascript will not initialize. Error states that the document is not in standards mode.
This is due to Laracasts\Utilities\Javascript causing the document source to appear as follows:
Thus DOCTYPE is not specified first in the document. Nasty hack fix, replace echo in LaravelViewBinder with: echo "\n\n"; to add an additional DOCTYPE at the start of the document But can we do better?