Image data-set bug? cannot add custom attributes to image directly

reproducing: image > Customize > Custom Attributes > +
Name = loading, Value = eager
output in html =

<span class="x-image e1544-e9 m16w-1s" loading="eager">
  <img src="thesource" width="640" height="360" alt="thealt" loading="lazy">
</span>

Hi Jon,

Unfortunately, it is not possible to add any attribute directly to the image tag.

Thanks

Would it be possible to replication functionality of the dropdown element, which has the Dropdown Custom Attributes and Toggle Custom Attributes.
So for the image element there could be:
Image Wrap Custom Attributes and Image Element Custom Attributes?

Screenshot 2025-02-05 at 21.55.44

1 Like

Hi Jon,

I will surely pass this to our development team and if it is possible, I will add it as a feature request.

Thanks

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.