@saooti/octopus-sdk 38.3.18 → 38.3.19

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.18",
3
+ "version": "38.3.19",
4
4
  "private": false,
5
5
  "description": "Javascript SDK for using octopus",
6
6
  "author": "Saooti",
@@ -235,7 +235,7 @@ export default defineComponent({
235
235
  updateHtml(): void {
236
236
  if (this.editor) {
237
237
  this.html = this.editor.getHTML().trim();
238
- if(this.html.startsWith("<p>")){
238
+ if(this.html.startsWith("<p>") && this.html.endsWith("</p>")&& 1===(this.html.match(/<p>/g) || []).length){
239
239
  this.html = this.html.substring(3, this.html.length - 4);
240
240
  }
241
241
  this.html = this.html.replaceAll("&nbsp;", " ");