Skip to content

Commit 6d6a4b0

Browse files
committed
Make WYSIWYG configuration options depend on wysiwyg being enabled
1 parent f9a8884 commit 6d6a4b0

File tree

2 files changed

+6
-0
lines changed

2 files changed

+6
-0
lines changed

app/code/Magento/Catalog/etc/adminhtml/system.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -173,6 +173,9 @@
173173
<label>Use Static URLs for Media Content in WYSIWYG</label>
174174
<comment>Media content will be inserted into the editor as a static URL. Media content is not updated if the system configuration base URL changes.</comment>
175175
<source_model>Magento\Config\Model\Config\Source\Yesno</source_model>
176+
<depends>
177+
<field id="enabled" negative="1">disabled</field>
178+
</depends>
176179
</field>
177180
</group>
178181
</section>

app/code/Magento/Cms/etc/adminhtml/system.xml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,9 @@
6161
<field id="editor" translate="label" type="select" sortOrder="2" showInDefault="1" showInWebsite="1" showInStore="0" canRestore="1">
6262
<label>WYSIWYG Editor</label>
6363
<source_model>Magento\Cms\Model\Config\Source\Wysiwyg\Editor</source_model>
64+
<depends>
65+
<field id="enabled" negative="1">disabled</field>
66+
</depends>
6467
</field>
6568
</group>
6669
</section>

0 commit comments

Comments
 (0)