controller_admin_media_preview

A controller for rendering preview thumbnails of any media embedded in a richtext-editor component of a resource on the controller#controller_admin_edit page.

The id path or query argument can be a resource id or name. The resource must exist and be visible to the current user. A successful request redirects with HTTP 303 to the image generated with the admin-editor mediaclass; missing media returns 404.

The controller is normally addressed through the admin_media_preview dispatch rule:

<img src="{% url admin_media_preview id=id %}" alt="">

Edit on GitHub