-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
production and dev differences. tinymce not rendering. due to no doctype in content from production server but doctype is in content from dev servers and the code is the same. #47
Comments
TinyMCE failing: tinymce.min.js:4 Failed to initialize the editor as the document is not in standards mode. TinyMCE requires standards mode. |
but working on dev Changed url: '/' + window.location.pathname.split('/') .pop() + '-filtered', to url: window.location.pathname.split('/') .pop() + '-filtered', in filters.ejs this stops it forcing the root url. works in dev
added addtional information in the PUBLIC attribute of the doctype tag on each page doesn't impact dev
this is to make it work with nginx routing. for dev now use http://localhost:8001 and NOT http://localhost:8000 which won't work I will switch back if nginx doesn't solve the doctype problem.
but some I've changes to test different cases on the uni server login.ejs - trying <!DOCTYPE html> login-success.ejs trying <!DOCTYPE HTML> bookings-list.ejs trying <!doctype html> rooms-list.ejs trying <!doctype HTML> everything else set to <!DOCTYPE html>
in /public to see what headers end up in the browser testdoctype.html
Only major difference between dev and production, aside from the webserver/proxying, is Next test is to downgrade my dev environment to node 16.17.0 and see if that replicates the issue, which I'll do next |
New plan. New things to try based on research.
|
I have decided not to do the complication of the security library now. I think its better to work on the security headers which had to be switched off, becuase they were related to local host, so the app works on the server and on localhost. It's better to work on that before I try the v18 because if the v18 think breaks the server I won't be able to work on anything else on the server until I ca go into uni |
No description provided.
The text was updated successfully, but these errors were encountered: