Skip to content

Commit 1ae8d0f

Browse files
author
Hwashiang Yu
committed
MC-3693: Add WYSIWYG to banner preview
- Resolved issue where wysisyg is only appended to the first instance of banner
1 parent c7f95be commit 1ae8d0f

File tree

2 files changed

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

2 files changed

+2
-2
lines changed

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

Lines changed: 1 addition & 1 deletion
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/banner/preview.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ export default class Preview extends BasePreview {
147147
element.id = this.parent.id + "-editor";
148148

149149
const config = this.config.additional_data.wysiwygConfig.wysiwygConfigData;
150-
config.adapter.settings.fixed_toolbar_container = ".pagebuilder-banner-text-content";
150+
config.adapter.settings.fixed_toolbar_container = "#" + this.parent.id + " .pagebuilder-banner-text-content";
151151

152152
WysiwygFactory(
153153
this.parent.id,

0 commit comments

Comments
 (0)