Hi everyone,
I’ve used Rick Text Editor in one of my collection. Currently I’m stuck on how to extend link field and add options or custom fields in Link to add no-follow.
I can see there’s a link.fields section in Payload documentation but I couldn’t find any code.
There’s another related question by fellow dev
@685569866400399360but I’m unable to get the working solution.
I want to achieve exactly same results as the attached image to add rel attribute..
I’ll be grateful to anyone who can assist me on this.
Thanks
Hey
@1036999625514696714there is an example of how to add additional fields to the Link within the Rich Text field here:
https://payloadcms.com/docs/fields/rich-text#exampleThis part of the example should give you what you need (see screenshot) - if you're still having troubles shoot me a reply
Alright thanks
@854377910689202256Star
Discord
online
Get dedicated engineering support directly from the Payload team.