Skip to content

Commit 569124f

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

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/slide/collage-centered/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@
3333
attr="data.button.attributes"
3434
ko-style="data.button.style"
3535
css="data.button.css">
36-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
36+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
3737
</a>
3838
</div>
3939
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
css="data.button.css"
3838
attr="data.button.attributes"
3939
ko-style="data.button.style">
40-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
40+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
4141
</a>
4242
</div>
4343
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
attr="data.button.attributes"
3535
ko-style="data.button.style"
3636
css="data.button.css">
37-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
37+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
3838
</a>
3939
</div>
4040
</div>

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@
3939
attr="data.button.attributes"
4040
ko-style="data.button.style"
4141
css="data.button.css">
42-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
42+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
4343
</a>
4444
</div>
4545
</div>

0 commit comments

Comments
 (0)