You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried this code to modify the order of the radio buttons and to set the default linkType to 'internal':
constfields=defaultFields.map(field=>{//modify link typeif(field.name==='linkType'){constradio=fieldasRadioField;return<RadioField>{
...radio,//use internal by defaultdefaultValue: 'internal',//change orderoptions: [radio.options[1],radio.options[0]]};}returnfieldasField;});
However, Payload always uses 'custom' as default value:
Describe the Bug
I tried this code to modify the order of the radio buttons and to set the default linkType to 'internal':
However, Payload always uses 'custom' as default value:
https://github.com/payloadcms/payload/blob/main/packages/richtext-lexical/src/features/link/markdownTransformer.ts#L39
Most of our links are internal and it would be much better to start with an internal link.
Link to the code that reproduces this issue
https://github.com/cbratschi/payload
Reproduction Steps
See above.
Which area(s) are affected? (Select all that apply)
plugin: richtext-lexical
Environment Info
The text was updated successfully, but these errors were encountered: