Skip to content

Commit 20b0f29

Browse files
committed
ACP2E-1362: The issue is with Pagebuilder not being able to update/save text on certain pagebuilder pages.
1 parent 8606031 commit 20b0f29

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/utils/editor.js

Lines changed: 1 addition & 2 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/utils/editor.ts

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -494,8 +494,7 @@ function removeHtmlTagAttribute(content: string, name: string): string
494494
{
495495
if (typeof content === "string" && content.indexOf(`${name}=`) !== -1) {
496496
const html = new DOMParser().parseFromString(content, "text/html");
497-
const children = html.querySelectorAll("[" + name + "]");
498-
children.forEach((child: Element) => {
497+
html.querySelectorAll(`[${name}]`).forEach((child: Element) => {
499498
child.removeAttribute(name);
500499
});
501500
content = html.body.innerHTML;

0 commit comments

Comments
 (0)