Skip to content
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

Editor Does't Appear on Mobile #284

Open
anatolzak opened this issue Aug 8, 2020 · 1 comment
Open

Editor Does't Appear on Mobile #284

anatolzak opened this issue Aug 8, 2020 · 1 comment

Comments

@anatolzak
Copy link

When editing a Model object, the rich text editor appears on desktop but not on mobile.

Here is a screenshot:

image

I checked the console and I noticed this error:

404 NOT FOUND /static/tinymce/themes/mobile/theme.js

I wanted to check locally if that file exists by executing python manage.py collectstatic and noticed that indeed, theme.js doesn't exist. Here are the files I got:

image

I am assuming the file should be staticfiles\tinymce\themes\mobile\theme.min.js?

@some1ataplace
Copy link

some1ataplace commented Mar 23, 2023

https://github.com/jazzband/django-tinymce/tree/master/tinymce/static/tinymce/themes/mobile

Yes, the error message indicates that there is a missing file (theme.js) in the static/tinymce/themes/mobile/ directory.

To fix this issue, you can try updating the django-tinymce package to the latest version or manually download and place the missing file in the static/tinymce/themes/mobile/ directory.

If you decide to manually download the missing file, you can use this source to get the theme.js file for the mobile theme:

https://www.tiny.cloud/tinymce/releases/theme/changelog.txt

Find and download the version you need (e.g. 5.9.2) and extract the theme.js file from the archive. Place this file in the static/tinymce/themes/mobile/ directory of your Django project.

Once that is done, run python manage.py collectstatic to collect the static files, and the error should be resolved.

Might be related to this

#333

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants