webstraxt / m2-page-builder-better-images
为页面构建器的图片添加选项,以指定显式的尺寸和加载行为
1.0.1
2022-11-07 16:53 UTC
Requires
- magento/framework: *
- magento/module-page-builder: *
README
这是一个允许您在页面构建器图片上指定显式尺寸和加载行为的 Magento 2 模块。允许为桌面和移动图片指定不同的尺寸。
安装方法
composer require webstraxt/m2-page-builder-better-images
php bin/magento module:enable Webstraxt_PageBuilderBetterImages
php bin/magento setup:upgrade
使用方法
- 使用页面构建器插入图片,并填写新的字段:显式宽度(桌面)、显式高度(桌面)、显式宽度(移动)、显式高度(移动)和图片加载。这些字段将在图片上渲染为 HTML 的
width
、height
和loading
属性。
版权 (C) 2022 Webstraxt Limited