@saooti/octopus-sdk 38.3.17 → 38.3.18

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": "@saooti/octopus-sdk",
3
- "version": "38.3.17",
3
+ "version": "38.3.18",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -234,10 +234,11 @@ export default defineComponent({
234
234
  },
235
235
  updateHtml(): void {
236
236
  if (this.editor) {
237
- this.html = this.editor.getHTML();
237
+ this.html = this.editor.getHTML().trim();
238
238
  if(this.html.startsWith("<p>")){
239
- this.html.substring(3, this.html.length - 4);
239
+ this.html = this.html.substring(3, this.html.length - 4);
240
240
  }
241
+ this.html = this.html.replaceAll("&nbsp;", " ");
241
242
  this.$emit("update:content", this.html);
242
243
  }
243
244
  },