Skip to content

Commit 7e83f26

Browse files
committed
MC-4000: Firefox - Cannot Inline Edit Banner Button
- Change button to anchor to allow inline editing to work inside of banner
1 parent 7e43bb1 commit 7e83f26

File tree

4 files changed

+8
-8
lines changed

4 files changed

+8
-8
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
<div if="isWysiwygSupported()" class="placeholder-text" ifnot="data.content.html" translate="'Edit Banner Text'"></div>
2121
<textarea ifnot="isWysiwygSupported()" class="inline-wysiwyg-textarea" afterRender="initTextarea" event="{keyup: onTextareaKeyUp, focus: onTextareaFocus, blur: onTextareaBlur, mousedown: stopEvent}" attr="placeholder: $t('Edit Banner Text')"/>
2222
</div>
23-
<button if="data.main.attributes()['data-show-button'] !== 'never'"
23+
<a if="data.main.attributes()['data-show-button'] !== 'never'"
2424
type="button"
2525
class="pagebuilder-banner-button"
2626
attr="data.button.attributes"
2727
ko-style="data.button.style"
2828
css="data.button.css">
2929
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
30-
</button>
30+
</a>
3131
</div>
3232
</div>
3333
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
<div if="isWysiwygSupported()" class="placeholder-text" ifnot="data.content.html" translate="'Edit Banner Text'"></div>
2121
<textarea ifnot="isWysiwygSupported()" class="inline-wysiwyg-textarea" afterRender="initTextarea" event="{keyup: onTextareaKeyUp, focus: onTextareaFocus, blur: onTextareaBlur, mousedown: stopEvent}" attr="placeholder: $t('Edit Banner Text')"/>
2222
</div>
23-
<button if="data.main.attributes()['data-show-button'] !== 'never'"
23+
<a if="data.main.attributes()['data-show-button'] !== 'never'"
2424
type="button"
2525
class="pagebuilder-banner-button"
2626
css="data.button.css"
2727
attr="data.button.attributes"
2828
ko-style="data.button.style">
2929
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
30-
</button>
30+
</a>
3131
</div>
3232
</div>
3333
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
<div if="isWysiwygSupported()" class="placeholder-text" ifnot="data.content.html" translate="'Edit Banner Text'"></div>
2121
<textarea ifnot="isWysiwygSupported()" class="inline-wysiwyg-textarea" afterRender="initTextarea" event="{keyup: onTextareaKeyUp, focus: onTextareaFocus, blur: onTextareaBlur, mousedown: stopEvent}" attr="placeholder: $t('Edit Banner Text')"/>
2222
</div>
23-
<button if="data.main.attributes()['data-show-button'] !== 'never'"
23+
<a if="data.main.attributes()['data-show-button'] !== 'never'"
2424
type="button"
2525
class="pagebuilder-banner-button"
2626
attr="data.button.attributes"
2727
ko-style="data.button.style"
2828
css="data.button.css">
2929
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
30-
</button>
30+
</a>
3131
</div>
3232
</div>
3333
</div>

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,14 +20,14 @@
2020
<div if="isWysiwygSupported()" class="placeholder-text" ifnot="data.content.html" translate="'Edit Banner Text'"></div>
2121
<textarea ifnot="isWysiwygSupported()" class="inline-wysiwyg-textarea" afterRender="initTextarea" event="{keyup: onTextareaKeyUp, focus: onTextareaFocus, blur: onTextareaBlur, mousedown: stopEvent}" attr="placeholder: $t('Edit Banner Text')"/>
2222
</div>
23-
<button if="data.main.attributes()['data-show-button'] !== 'never'"
23+
<a if="data.main.attributes()['data-show-button'] !== 'never'"
2424
type="button"
2525
class="pagebuilder-banner-button"
2626
attr="data.button.attributes"
2727
ko-style="data.button.style"
2828
css="data.button.css">
2929
<span data-bind="liveEdit: { field: 'button_text', placeholder: buttonPlaceholder, selectAll: true }"></span>
30-
</button>
30+
</a>
3131
</div>
3232
</div>
3333
</div>

0 commit comments

Comments
 (0)