@kvass/rich-text 1.4.17 → 1.4.18
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 +5 -5
package/package.json
CHANGED
package/src/Component.vue
CHANGED
|
@@ -268,6 +268,8 @@ export default {
|
|
|
268
268
|
.setLink({
|
|
269
269
|
href: value,
|
|
270
270
|
target: this.isInternalUrl(value) ? '_self' : '_blank',
|
|
271
|
+
//reset rel to prevent nofollow to be set
|
|
272
|
+
rel: '',
|
|
271
273
|
})
|
|
272
274
|
.run()
|
|
273
275
|
else editor.unsetLink().run()
|
|
@@ -279,6 +281,8 @@ export default {
|
|
|
279
281
|
href: value,
|
|
280
282
|
'data-cta': this.bubbleOptions.theme,
|
|
281
283
|
target: this.isInternalUrl(value) ? '_self' : '_blank',
|
|
284
|
+
//reset rel to prevent nofollow to be set
|
|
285
|
+
rel: '',
|
|
282
286
|
})
|
|
283
287
|
.run()
|
|
284
288
|
else editor.unsetCta().run()
|
|
@@ -312,11 +316,7 @@ export default {
|
|
|
312
316
|
],
|
|
313
317
|
content: this.value,
|
|
314
318
|
onUpdate: () => {
|
|
315
|
-
let html = this.editor
|
|
316
|
-
.getHTML()
|
|
317
|
-
.replace(/^<p>\s*<\/p>$/, '')
|
|
318
|
-
//remove rel="nofollow ..."
|
|
319
|
-
.replace(/\s*rel="[^"]*"/g, '')
|
|
319
|
+
let html = this.editor.getHTML().replace(/^<p>\s*<\/p>$/, '')
|
|
320
320
|
|
|
321
321
|
this.$emit('input', html)
|
|
322
322
|
},
|