Open eriktelepovsky opened 3 months ago
This sounds a bit as if you're using django-js-asset<2
instead of the version which works with Django 4.1 or better?
Recent django-ckeditor versions depend on django-js-asset>=2.0
, so I'm not sure what's going on.
(... the CKEDITOR_BASEPATH
thing is necessary when you're using ManifestStaticFilesStorage
in production.)
Yes, I have already found some issues and docs related to django-js-asset
, CKEDITOR_BASEPATH
and ManifestStaticFilesStorage
but nothing helped.
I have most recent django-js-asset installed:
pip freeze|grep asset
django-js-asset==2.2.0
I already tried setting the CKEDITOR_BASEPATH
to custom value. The path is changed, but the nested script in src is still present.
I don't use any Manifest static file storage.
And the issue is present on localhost as well.
Are you maybe using a different template engine, Jinja2 or something?
It really sounds to me like a broken installation or something, I'm not sure. Sorry to not be of more help.
No, I use default Django template engine :/
Hello.
I installed django-ckeditor==6.7.1 and Django==4.2.11 but the CKEditor did not showed up. I noticed weird HTML code generated by CKEditorWidget:
Notice nested
<stript
in the src for ckeditor-init.jsAny idea please?
When I change media() to this:
it works perfectly fine. What's wrong with the JS()?