django-tinymce4-lite icon indicating copy to clipboard operation
django-tinymce4-lite copied to clipboard

Tinymce not working with ManifestStaticFilesStorage

Open nikolaysm opened this issue 4 years ago • 4 comments

Hi everyone, I am using django 1.11, django-tinymce4-lite 1.7.4.

### This problem only occurs in internet explorer 11.

ManifestStaticFilesStorage is a subclass of the StaticFilesStorage storage backend which stores the file names it handles by appending the MD5 hash of the file’s content to the filename. For example, the file js/tinymce.min.js would also be saved as js/tinymce.min.500c07cb726a.js.

If I switch my storage to StaticFilesStorage it works fine.

Has anyone come across that yet? Or a suggestion how that can be solved (with ManifestStaticFilesStorage to keep)

nikolaysm avatar Jul 16 '20 11:07 nikolaysm

"Not working" is a rather vague description. Please describe your issue with as much details as possible.

romanvm avatar Jul 17 '20 11:07 romanvm

So no error in console or anywhere else. Textarea is not displayed, no tinymce wrapper added.

nikolaysm avatar Jul 17 '20 14:07 nikolaysm

Is this the problem: The generated HTML contains links like js/tinymce.min.js but it should be ss/tinymce.min.500c07cb726a.js to match how the storage class saved it

(Probably not, as you wrote that the problem is browser-specific, which wouldn’t be the case with that)

merwok avatar Jul 17 '20 17:07 merwok

Yes, the problem only occurs in internet explorer and only when I use renamed tinymce.js. Actually the problem has nothing to do with ManifestStaticFilesStorage.

nikolaysm avatar Jul 17 '20 22:07 nikolaysm