Skip to content

Commit f5a76c0

Browse files
committed
PB-284: Improve live edit
1 parent 312f2b0 commit f5a76c0

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

app/code/Magento/PageBuilder/view/adminhtml/web/js/binding/live-edit.js

Lines changed: 2 additions & 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/binding/live-edit.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ import {DataObject} from "../data-store";
1818
* @returns {string}
1919
*/
2020
function stripHtml(html: string) {
21-
const tempDiv = new DOMParser().parseFromString(html, "text/html");
21+
const htmlDocument = new DOMParser().parseFromString(html, "text/html");
2222

23-
return tempDiv.body.textContent;
23+
return htmlDocument.body.textContent;
2424
}
2525

2626
/**

0 commit comments

Comments
 (0)