payloadcms / payload

Payload is the open-source, fullstack Next.js framework, giving you instant backend superpowers. Get a full TypeScript backend and admin panel instantly. Use Payload as a headless CMS or for building powerful applications.
https://payloadcms.com
MIT License
25.6k stars 1.63k forks source link

richtext-lexical: HTML convert does not apply target _blank to new tab links #8569

Closed GeekPro101 closed 1 month ago

GeekPro101 commented 1 month ago

Link to reproduction

No response

Describe the Bug

(Fixed in v3) Image

Generates the following link: <a href="https://google.com" rel="noopener noreferrer">google.com</a>

Issue lies in:

https://github.com/payloadcms/payload/blob/268e6c485e67440d8ce0dd7679705d8581a269c1/packages/richtext-lexical/src/field/features/Link/index.ts#L127

To Reproduce

Create a document with a richtext-lexical richtext editor + htmlConverter Create a link and tick new tab option (see above) Observe no _blank attribute in

Payload Version

v2.15.0

Adapters and Plugins

db-mongdb, bundler-webpack, richtext-lexical

GermanJablo commented 1 month ago

Thank you!

github-actions[bot] commented 1 month ago

This issue has been automatically locked. Please open a new issue if this issue persists with any additional detail.

github-actions[bot] commented 4 weeks ago

🚀 This is included in version v2.30.2