You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
But in the last wagtail version (I don't know when this has changed), there is no logo class but a sidebar-wagtail-branding instead, see screenshot:
The preview of the image does not work then.
Instead of relying on a css class that might change anytime, wouldn't it be more robust to get the image's url from the "#id_" + field + "-chooser" element? See the following template extract:
In
fetchimage
, the code callBut in the last wagtail version (I don't know when this has changed), there is no
logo
class but asidebar-wagtail-branding
instead, see screenshot:The preview of the image does not work then.
Instead of relying on a css class that might change anytime, wouldn't it be more robust to get the image's url from the
"#id_" + field + "-chooser"
element? See the following template extract:The text was updated successfully, but these errors were encountered: