Skip to content

Commit

Permalink
Wysiwyg allow Web image types
Browse files Browse the repository at this point in the history
  • Loading branch information
caothu159 committed Jun 25, 2024
1 parent bf980af commit 946ded5
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions etc/di.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,18 @@
<type name="Magento\Theme\Model\Design\Backend\Logo">
<plugin name="allow-web-images" type="Diepxuan\Images\Plugin\Theme\Model\Design\Backend\Logo" />
</type>
<type name="Magento\Cms\Model\Wysiwyg\Images\Storage">
<arguments>
<argument name="extensions" xsi:type="array">
<item name="allowed" xsi:type="array">
<item name="svg" xsi:type="string">image/svg+xml</item>
<item name="webp" xsi:type="string">image/webp</item>
</item>
<item name="image_allowed" xsi:type="array">
<item name="svg" xsi:type="string">image/svg+xml</item>
<item name="webp" xsi:type="string">image/webp</item>
</item>
</argument>
</arguments>
</type>
</config>

0 comments on commit 946ded5

Please sign in to comment.