Skip to content

Commit d7cab28

Browse files
committed
Merge remote-tracking branch 'origin/MC-3903-inline-select-all' into cms-team-1-delivery
2 parents 7d886e2 + ca1861e commit d7cab28

File tree

14 files changed

+24
-14
lines changed

14 files changed

+24
-14
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/banner/_default.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,9 @@
3030
margin-top: @margin;
3131
opacity: 1;
3232
transition: all 500ms ease;
33+
34+
span[contenteditable=true] {
35+
display: block;
36+
}
3337
}
3438
}

app/code/Magento/PageBuilder/view/adminhtml/web/css/source/content-type/slide/_default.less

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,10 @@
2525
margin-top: @margin;
2626
opacity: 1;
2727
transition: all 500ms ease;
28+
29+
span[contenteditable=true] {
30+
display: block;
31+
}
2832
}
2933

3034
.wysiwyg-container {

app/code/Magento/PageBuilder/view/adminhtml/web/js/binding/live-edit.js

Lines changed: 4 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/button-item/default/preview.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,6 @@
99
<render args="getOptions().template" />
1010
<a attr="data.link.attributes" ko-style="data.link.style" css="data.link.css">
1111
<span class="button-item-drag-handle" css="{disabled: parent.parent.children().length <= 1}"></span>
12-
<span attr="data.link_text.attributes" data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }, hasFocus: $parent.parent.preview.isLiveEditing() === $index()" event="{ focusout: onFocusOut.call($data) }"></span>
12+
<span attr="data.link_text.attributes" data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }, hasFocus: $parent.parent.preview.isLiveEditing() === $index()" event="{ focusout: onFocusOut.call($data) }"></span>
1313
</a>
1414
</div>

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
@@ -45,7 +45,7 @@
4545
attr="data.button.attributes"
4646
ko-style="data.button.style"
4747
css="data.button.css">
48-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
48+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
4949
</a>
5050
</div>
5151
</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
@@ -47,7 +47,7 @@
4747
css="data.button.css"
4848
attr="data.button.attributes"
4949
ko-style="data.button.style">
50-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
50+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
5151
</a>
5252
</div>
5353
</div>

0 commit comments

Comments
 (0)