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.
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
Link to reproduction
No response
Describe the Bug
(Fixed in v3)
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