@kvass/rich-text 1.4.15 → 1.4.16
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 +10 -1
package/package.json
CHANGED
package/src/Component.vue
CHANGED
|
@@ -264,7 +264,12 @@ export default {
|
|
|
264
264
|
case 'link':
|
|
265
265
|
if (value)
|
|
266
266
|
editor
|
|
267
|
-
.setLink({
|
|
267
|
+
.setLink({
|
|
268
|
+
href: value,
|
|
269
|
+
target: this.isInternalUrl(value) ? '_self' : '_blank',
|
|
270
|
+
//reset rel to prevent nofollow to be set
|
|
271
|
+
rel: '',
|
|
272
|
+
})
|
|
268
273
|
.run()
|
|
269
274
|
else editor.unsetLink().run()
|
|
270
275
|
break
|
|
@@ -275,6 +280,8 @@ export default {
|
|
|
275
280
|
href: value,
|
|
276
281
|
'data-cta': this.bubbleOptions.theme,
|
|
277
282
|
target: this.isInternalUrl(value) ? '_self' : '_blank',
|
|
283
|
+
//reset rel to prevent nofollow to be set
|
|
284
|
+
rel: '',
|
|
278
285
|
})
|
|
279
286
|
.run()
|
|
280
287
|
else editor.unsetCta().run()
|
|
@@ -309,6 +316,8 @@ export default {
|
|
|
309
316
|
content: this.value,
|
|
310
317
|
onUpdate: () => {
|
|
311
318
|
let html = this.editor.getHTML().replace(/^<p>\s*<\/p>$/, '')
|
|
319
|
+
|
|
320
|
+
console.log(html)
|
|
312
321
|
this.$emit('input', html)
|
|
313
322
|
},
|
|
314
323
|
onSelectionUpdate: ({ editor }) => {
|