Skip to content

Commit 637dd1c

Browse files
committed
Merge remote-tracking branch 'origin/MC-3903-inline-select-all' into pagebuilder-delivery
2 parents 24e758e + 42eba59 commit 637dd1c

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
@@ -26,6 +26,10 @@
2626
margin: @margin;
2727
opacity: 1;
2828
transition: all 500ms ease;
29+
30+
span[contenteditable=true] {
31+
display: block;
32+
}
2933
}
3034

3135
[data-element='content'] {

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
@@ -26,7 +26,7 @@
2626
attr="data.button.attributes"
2727
ko-style="data.button.style"
2828
css="data.button.css">
29-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
29+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
3030
</button>
3131
</div>
3232
</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
@@ -26,7 +26,7 @@
2626
css="data.button.css"
2727
attr="data.button.attributes"
2828
ko-style="data.button.style">
29-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
29+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
3030
</button>
3131
</div>
3232
</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
@@ -26,7 +26,7 @@
2626
attr="data.button.attributes"
2727
ko-style="data.button.style"
2828
css="data.button.css">
29-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
29+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
3030
</button>
3131
</div>
3232
</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
@@ -26,7 +26,7 @@
2626
attr="data.button.attributes"
2727
ko-style="data.button.style"
2828
css="data.button.css">
29-
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder }"></span>
29+
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
3030
</button>
3131
</div>
3232
</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)