Skip to content

Commit 77d1d2f

Browse files
committed
MC-4014: PageBuilder Performance Is Bad With Minimal Content
- Load TinyMCE within slides on click - Fix tooltip text colour
1 parent 719b470 commit 77d1d2f

File tree

8 files changed

+305
-45
lines changed

8 files changed

+305
-45
lines changed

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

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@
102102
border-radius: 1px;
103103
bottom: 97.5%;
104104
box-shadow: 0 2px 8px 0 rgba(0, 0, 0, .3);
105+
color: @color-pagebuilder-darkest-gray;
105106
font-size: 14px;
106107
left: 50%;
107108
min-width: auto;

app/code/Magento/PageBuilder/view/adminhtml/web/js/content-type/slide/preview.js

Lines changed: 123 additions & 13 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/js/content-type/slider/preview.js

Lines changed: 1 addition & 4 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/js/utils/delay-until.js

Lines changed: 30 additions & 0 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/slide/poster/preview.html

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,9 @@
2626
attr="data.content.attributes"
2727
ko-style="data.content.style"
2828
css="data.content.css"
29-
event="mousedown: stopEvent"
30-
afterRender="initWysiwyg">
29+
event="mousedown: stopEvent, click: activateEditor"
30+
contenteditable="true"
31+
afterRender="afterRenderWysiwyg">
3132
<div html="data.content.html"></div>
3233
</div>
3334
<div if="!data.content.html() && isWysiwygSupported()"

0 commit comments

Comments
 (0)