diff --git a/docs/src/demos/Extensions/Link/index.vue b/docs/src/demos/Extensions/Link/index.vue index 9d22c73f..4297b8c1 100644 --- a/docs/src/demos/Extensions/Link/index.vue +++ b/docs/src/demos/Extensions/Link/index.vue @@ -39,7 +39,7 @@ export default { ], content: `

- Wow, this editor has support for links to the whole world wide web. We tested a lot of URLs and I think you can add *every URL* you want. Isn’t that cool? Let’s try another one! Yep, seems to work. + Wow, this editor has support for links to the whole world wide web. We tested a lot of URLs and I think you can add *every URL* you want. Isn’t that cool? Let’s try another one! Yep, seems to work.

By default every link will get a \`rel="noopener noreferrer nofollow"\` attribute. It’s configurable though. diff --git a/docs/src/docPages/api/extensions/link.md b/docs/src/docPages/api/extensions/link.md index c0dfff0b..0eb0c14f 100644 --- a/docs/src/docPages/api/extensions/link.md +++ b/docs/src/docPages/api/extensions/link.md @@ -20,7 +20,7 @@ yarn add @tiptap/extension-link | class | string | – | Add a custom class to the rendered HTML tag. | | openOnClick | boolean | true | If enabled, links will be opened on click. | | rel | string | noopener noreferrer nofollow | Configure the `rel` attribute. | -| target | string | _self | Set the default `target` of links. | +| target | string | _blank | Set the default `target` of links. | ## Commands | Command | Options | Description | diff --git a/packages/extension-link/index.ts b/packages/extension-link/index.ts index 196e9735..a306bced 100644 --- a/packages/extension-link/index.ts +++ b/packages/extension-link/index.ts @@ -23,7 +23,7 @@ export default new Mark() .name('link') .defaults({ openOnClick: true, - target: '_self', + target: '_blank', rel: 'noopener noreferrer nofollow', }) .schema(({ options }) => ({