@social-mail/social-mail-client 1.2.284 → 1.2.285

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@social-mail/social-mail-client",
3
- "version": "1.2.284",
3
+ "version": "1.2.285",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -135,7 +135,9 @@ export default class WebSitePageEditor extends HtmlPageEditor {
135
135
  const parser = new DOMParser();
136
136
  const dom = parser.parseFromString(text, "text/html");
137
137
  const children = Array.from(dom.body.children);
138
- e.innerHTML = "";
138
+ for (const iterator of Array.from(e.children)) {
139
+ iterator.remove();
140
+ }
139
141
  for (const iterator of children) {
140
142
  iterator.setAttribute("contentEditable", "false");
141
143
  iterator.remove();