@social-mail/social-mail-client 1.2.46 → 1.2.47

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.46",
3
+ "version": "1.2.47",
4
4
  "description": "",
5
5
  "main": "index.js",
6
6
  "scripts": {
@@ -240,7 +240,8 @@ export default class WebSiteStudioPage extends ContentPage {
240
240
 
241
241
  @Action({ onEvent: "save-page"})
242
242
  async savePage() {
243
- const content = new File([this.pageContent], this.selectedFile.name, { type: this.selectedFile.contentType});
243
+ const html = `<!DOCTYPE html>${this.pageContent}`;
244
+ const content = new File([html], this.selectedFile.name, { type: this.selectedFile.contentType});
244
245
  const result = await this.cloudFileService.saveFile({ appFileID: this.selectedFile.appFileID, content });
245
246
  this.selectedFile.url = result.url;
246
247
  this.selectedFile.fileContentID = result.fileContentID;
@@ -544,7 +544,7 @@ export default class HtmlPageEditor extends AtomControl {
544
544
  }
545
545
  this.undoList.add(this.lastHtml);
546
546
  this.lastHtml = currentHtml;
547
- this.element.dispatchEvent(new CustomEvent("htmlPageChanged", { detail: currentHtml, bubbles: true }));
547
+ this.element.dispatchEvent(new CustomEvent("htmlPageChanged", { detail: clone.outerHTML, bubbles: true }));
548
548
  AtomBinder.refreshValue(this, "htmlPage");
549
549
  setTimeout(() => {
550
550
  this.selection.update();