Reputation: 217
I'm not using CDN or any link for CKEditor but I have PIP installed it using pip install django-ckeditor. I have added all necessary CSPs and CKEditor configurations in settings.py file but CKEditor is not working in html. Please help me fix it.
Upvotes: 0
Views: 553
Reputation: 176
'unsafe-inline'
to style-src
and it will work for you. But it does not look safeI will choose option 2 and will consider option number 4 in the future.
Help links
Upvotes: 1
Reputation: 11
Try
<p> {{form.media}} {{form.as_p}} </p>
<p> {{form.media}} {{form.as_p|safe}} </p>
Upvotes: 0