Skip to content

Commit c49f438

Browse files
committed
MC-42230: Reverted unnecessary changes
1 parent 64ae6ae commit c49f438

File tree

2 files changed

+9
-18
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type

2 files changed

+9
-18
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -7,21 +7,17 @@
77

88
<div class="pagebuilder-content-type pagebuilder-block" event="{ mouseover: onMouseOver, mouseout: onMouseOut }, mouseoverBubble: false" css="{'pagebuilder-block-overlay': displayingBlockPreview()}">
99
<div attr="data.main.attributes" ko-style="data.main.style" css="data.main.css">
10-
<!-- ko if: displayingBlockPreview -->
11-
<!-- ko with: {dataMainUnsanitizedHtml: data.main.html, initializeWidgets: initializeWidgets} -->
12-
<div class="rendered-content" html="dataMainUnsanitizedHtml" afterRender="initializeWidgets"></div>
13-
<!-- /ko -->
14-
<!-- /ko -->
10+
<div if="displayingBlockPreview" class="rendered-content" html="data.main.html" afterRender="initializeWidgets"></div>
1511
<div ifnot="displayingBlockPreview" class="pagebuilder-block-placeholder">
16-
<span class="placeholder-text" text="placeholderText"></span>
12+
<span class="placeholder-text" text="placeholderText"/>
1713
</div>
1814
</div>
1915
<div data-role="spinner"
2016
class="admin__data-grid-loading-mask"
2117
if="loading">
2218
<div class="spinner">
23-
<span repeat="8"></span>
19+
<span repeat="8"/>
2420
</div>
2521
</div>
26-
<render args="getOptions().template"/>
22+
<render args="getOptions().template" />
2723
</div>

app/code/Magento/PageBuilder/view/adminhtml/web/template/content-type/image/full-width/preview.html

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,11 @@
1616
class="preview-image"
1717
css="getViewportImageData().css"
1818
ko-style="getViewportImageData().style" />
19-
<!-- ko if: data.caption.html() -->
20-
<!-- ko with: data.caption -->
21-
<!-- ko with: {attributes: attributes, style: style, css: css, dataCaptionUnsanitizedHtml: html} -->
22-
<figcaption attr="attributes"
23-
css="css"
24-
html="dataCaptionUnsanitizedHtml"
25-
ko-style="style">
19+
<figcaption if="data.caption.html()"
20+
attr="data.caption.attributes"
21+
css="data.caption.css"
22+
html="data.caption.html"
23+
ko-style="data.caption.style">
2624
</figcaption>
27-
<!-- /ko -->
28-
<!-- /ko -->
29-
<!-- /ko -->
3025
</figure>
3126
</div>

0 commit comments

Comments
 (0)