Skip to content

Commit

Permalink
Add imageUploader to formElement type
Browse files Browse the repository at this point in the history
  • Loading branch information
neillrobson committed May 14, 2018
1 parent 214ae8b commit 5a323af
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/code/Magento/Ui/etc/ui_configuration.xsd
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@
<xs:element name="radioset" type="formElementRadioset" maxOccurs="unbounded"/>
<xs:element name="wysiwyg" type="formElementWysiwyg" maxOccurs="unbounded"/>
<xs:element name="fileUploader" type="formElementFileUploader" maxOccurs="unbounded"/>
<xs:element name="imageUploader" type="formElementImageUploader" maxOccurs="unbounded"/>
<xs:element name="button" type="formElementButton" maxOccurs="unbounded"/>
</xs:choice>
</xs:group>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,19 @@
<xs:attributeGroup ref="ui_element_attributes"/>
</xs:complexType>

<xs:complexType name="formElementImageUploader">
<xs:sequence>
<xs:element name="settings" minOccurs="0" maxOccurs="1">
<xs:complexType>
<xs:choice minOccurs="0" maxOccurs="unbounded">
<xs:group ref="componentImageUploaderSettings"/>
</xs:choice>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attributeGroup ref="ui_element_attributes"/>
</xs:complexType>

<xs:group name="componentImageUploaderSettings">
<xs:choice>
<xs:group ref="componentFileUploaderSettings"/>
Expand Down

0 comments on commit 5a323af

Please sign in to comment.