Skip to content

Commit 4573001

Browse files
committed
MC-3903: Clicking into live edit shouldn't focus all text if existing text is present
- enable selectAll text for Banner buttons
1 parent 569124f commit 4573001

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/banner/collage-centered/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
attr="data.button.attributes"
2222
ko-style="data.button.style"
2323
css="data.button.css">
24-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
24+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
2525
</button>
2626
</div>
2727
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/banner/collage-left/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
css="data.button.css"
2222
attr="data.button.attributes"
2323
ko-style="data.button.style">
24-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
24+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
2525
</button>
2626
</div>
2727
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/banner/collage-right/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
attr="data.button.attributes"
2222
ko-style="data.button.style"
2323
css="data.button.css">
24-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
24+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
2525
</button>
2626
</div>
2727
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/banner/poster/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
attr="data.button.attributes"
2222
ko-style="data.button.style"
2323
css="data.button.css">
24-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
24+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
2525
</button>
2626
</div>
2727
</div>

0 commit comments

Comments
 (0)