@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 CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@kvass/rich-text",
3
- "version": "1.4.17",
3
+ "version": "1.4.18",
4
4
  "description": "rich text component for kvass",
5
5
  "main": "index.js",
6
6
  "scripts": {
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
  },