Adding bootstrap img-responsive class to wagtail WYSIWYG editor
问题 I am trying to make it so that when a body image is inserted into a page, that the bootstap class "img-responsive" is added to the image tag? Can anyone tell me how to achieve this? 回答1: You can do this through image formats: http://docs.wagtail.io/en/v0.8.5/core_components/pages/editing_api.html#image-formats-in-the-rich-text-editor The "Full width" / "Left-aligned" / "Right-aligned" options you usually get when inserting an image into the rich text area come from Format objects, which