RichTextField not visible when used as a field on custom Image model
See original GitHub issueIssue Summary
RichTextField fields are not visible in the CMS when used as a field on custom Image model.
Steps to Reproduce
I set up a custom image model as described here. I added a wagtail.core.fields.RichTextField
as one of the fields, and added that field name to admin_form_fields
. I expected the field to appear at /cms/images/{pk} but it does not. Other standard-issue Django fields added in the same way do appear in the CMS.
Technical details
- Python version: Python 3.6.4
- Django version: Django 2.0.4
- Wagtail version: Wagtail 2.0.1
- Browser version: Safari 11.1; Chrome 65.0.3325.181
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:13 (7 by maintainers)
Top Results From Across the Web
Wagtail RichTextField not showing in Django ModelForm
the title and description field are displayed in the form, the summary not. Is there a solution for this and/or a work around?...
Read more >Image from Rich Text Field is not visible in community site to ...
Open the image, at the top there is a link called: public link ... Go to the Rich text field, paste the image...
Read more >Images Rich text field dataverse not showing in canvas app
In dataverse we use a richtextbox in a model driven app. What happens is that users copy and paste text and images from...
Read more >Image in Rich Text Field is not visible in HTML template emails
I have a custom Rich Text Field in custom object which is used in HTML email templates. Normally this field would have images...
Read more >Changing rich text representation - Wagtail's documentation
The HTML representation of an image in rich text can be customised - for example, to display captions or custom fields. To do...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
@gasman, OK, I’ll probably have time to fix it.
I think the ‘proper’ fix for this will be to ensure that the edit form’s media property is output onto the page - this should include the necessary draftail.css and draftail.js includes. (However, it may still be lacking some of the additional includes normally found in
_editor_js.html
, such as modal-workflow.js, and so you might find that some functionality is missing, such as chooser popups.)Note that having a rich text field within the image model could also cause problems with the ‘upload’ tab of the image chooser popup, because the rich text field may itself trigger popups, and a popup within a popup isn’t officially supported…