@kvass/rich-text 1.4.0 → 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.0",
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
  },
@@ -342,6 +343,10 @@ export default {
342
343
  border-left: 1px solid rgba(white, 0.1);
343
344
  }
344
345
 
346
+ option {
347
+ color: black;
348
+ }
349
+
345
350
  button {
346
351
  padding: 0.5rem;
347
352
  min-width: 2.5rem;