I
I
ixotep2019-12-13 10:23:36
Django
ixotep, 2019-12-13 10:23:36

How to install ckeditor in django 3.0?

Hello!
Unable to connect CKeditor, an error occurs and an empty field where RichTextUploadingField should be displayed:
Uncaught Error: [CKEDITOR.resourceManager.load] Resource name "insertpre" was not found at " 127.0.0.1:8000/static/ckeditor/ckeditor/plugins/ in... ".
at CKEDITOR.resourceManager. (ckeditor.js:270)
at e (ckeditor.js:265)
at Array.x (ckeditor.js:265)
at t (ckeditor.js:265)
at HTMLScriptElement.CKEDITOR.env.ie.e.$.onerror (ckeditor.js:266)
Steps taken:
1. Installed django-ckeditor
2. included in INSTALLED_APPS = [
'ckeditor',
'ckeditor_uploader',
]
3. Added the RichTextUploadingField field to the model
4. did collectstatic
, what else is needed to make the editor work?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
M
macik, 2022-01-28
@macik

And MEDIA_URL registered?
I have so ...

MEDIA_ROOT = os.path.join(BASE_DIR, 'media')
STATIC_ROOT = "/static/"
MEDIA_URL = '/media/'

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question