Closed ricard33 closed 2 years ago
I have the same issue after upgrading to Django 4 and that's because the HashedFilesMixin
now reads the contents of *.js
files so that it can replace the paths of JavaScript source maps.
As a temporary workaround, I added my own editor_plugin.js
and editor_plugin_src.js
static files that are copies of the original with the invalid characters removed.
@sehmaschine I noticed you initially removed tinymce
but then you added it back in. Any reason why we cannot remove it?
@Kiougar we could remove it. But I check the tinymce-website again (after I removed it) and it seems that you need to register for the free version (which is a bit strange IMO). So I thought it´s better to keep it for now. Besides, we did not communicate the depreciation correctly.
that you need to register for the free version
What does that mean exactly?
So I thought it´s better to keep it for now. Besides, we did not communicate the depreciation correctly.
Yeah, makes sense - it's going to be a pain though for people that use the ManifestStaticFilesStorage
since it simply won't work unless we manually edit the files.
Should I create a PR that changes the editor_plugin.js
and editor_plugin_src.js
files?
A PR is appreciated
PR ready - @sehmaschine can you please check when you get a chance?
Thanks. I'll check the PR in the next couple of days.
After upgrading django-grappelli to version 3.0.1, the command
python manage.py collectstatic
fails to decode two files from tiny_mce :Error is:
Opening
editor_plugin.js
andeditor_plugin_src.js
, one can see some invalid characters (respective positions are 2819 and 4560).