@kvass/rich-text 1.4.1 → 1.4.2

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": "@kvass/rich-text",
3
- "version": "1.4.1",
3
+ "version": "1.4.2",
4
4
  "description": "rich text component for kvass",
5
5
  "main": "src/Component.vue",
6
6
  "scripts": {
package/src/Component.vue CHANGED
@@ -246,7 +246,8 @@ export default {
246
246
  extensions: [StarterKit, Link, Image, CallToAction],
247
247
  content: this.value,
248
248
  onUpdate: () => {
249
- this.$emit('input', this.editor.getHTML())
249
+ let html = this.editor.getHTML().replace(/^<p>\s*<\/p>$/, '')
250
+ this.$emit('input', html)
250
251
  },
251
252
  })
252
253
  },