@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 +1 -1
- package/src/Component.vue +6 -1
package/package.json
CHANGED
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
|
-
|
|
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;
|