- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024
02:39 AM
08-29-2024
02:39 AM
in conenttype xml file
<element name="block_title">
<html name="block_title" converter="Magento_PageBuilder/js/converter/html/tag-escaper" />
</element>
in ui component
<fieldset name="block_data" sortOrder="20">
<settings>
<label translate="true">Main</label>
<collapsible>true</collapsible>
<opened>true</opened>
</settings>
<field name="block_title" sortOrder="10" formElement="input">
<settings>
<label translate="true">Title</label>
<dataType>text</dataType>
<dataScope>block_title</dataScope>
<validation>
<rule name="validate-string" xsi:type="boolean">true</rule>
</validation>
</settings>
</field>
</fieldset>
master.html
<div attr="data.main.attributes" ko-style="data.main.style" ...>
<div>
<h3>Block Title:</h3>
</div>
<div attr="data.block_title.attributes"></div>
</div>
Solved! Go to Solution.
Labels:
1 ACCEPTED SOLUTION
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024
04:25 AM
08-29-2024
04:25 AM
solved by simply binding the values inside the parent div
1 REPLY 1
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-29-2024
04:25 AM