Skip to content

Commit 86f9647

Browse files
committed
MC-3560: Implement Editing Text Content Block from the Stage with WYSIWYG turned off completely or by default
Add adjustTextareaHeightBasedOnScrollHeight call when saving slideout textarea
1 parent c0738f8 commit 86f9647

File tree

2 files changed

+3
-0
lines changed
  • app/code/Magento/PageBuilder/view/adminhtml/web

2 files changed

+3
-0
lines changed

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

Lines changed: 2 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/ts/js/content-type/text/preview.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ export default class Preview extends BasePreview {
7070
// Update content in our stage preview textarea after its slideout counterpart gets updated
7171
events.on(`form:${this.parent.id}:saveAfter`, () => {
7272
this.textarea.value = this.parent.dataStore.get("content") as string;
73+
this.adjustTextareaHeightBasedOnScrollHeight();
7374
});
7475
}
7576

0 commit comments

Comments
 (0)