I’m trying to add css class directly to Page Builder images. I want to disable lazy loading for those images.
I’ve successfully created new Theme for admin (theme is working for sure) but I can not overwrite master.html from page builder module. My path is: adminhtml/vendor/theme_name/Magento_PageBuilder/web/template/content-type/image/full-width
my master.html:
<figure attr="data.main.attributes" ko-style="Object.assign({}, data.main.style(), !data.desktop_image.attributes().src ? {} : {borderStyle: 'none'})" css="data.main.css">
<a if="data.link.attributes().href" attr="data.link.attributes" ko-style="data.link.style" css="data.link.css">
<img if="data.desktop_image.attributes().src"
attr="data.desktop_image.attributes"
class="pagebuilder-mobile-hidden no_lazy"
css="data.desktop_image.css"
ko-style="data.desktop_image.style" />
<img if="data.mobile_image.attributes().src"
attr="data.mobile_image.attributes"
class="pagebuilder-mobile-only no_lazy"
css="data.mobile_image.css"
ko-style="data.mobile_image.style" />
</a>
<ifnot args="data.link.attributes().href">
<img if="data.desktop_image.attributes().src"
attr="data.desktop_image.attributes"
class="pagebuilder-mobile-hidden no_lazy"
css="data.desktop_image.css"
ko-style="data.desktop_image.style"/>
<img if="data.mobile_image.attributes().src"
attr="data.mobile_image.attributes"
class="pagebuilder-mobile-only no_lazy"
css="data.mobile_image.css"
ko-style="data.mobile_image.style" />
</ifnot>
test
<figcaption if="data.caption.html()"
attr="data.caption.attributes"
class="no_lazy"
css="data.caption.css"
html="data.caption.html"
ko-style="data.caption.style">
</figcaption>
</figure>
How can I add class directly to Page builder images?