From 43bffaa5c1517ae3bf4be38ce18fe2291d8f681d Mon Sep 17 00:00:00 2001 From: Marco Date: Sat, 29 Aug 2026 22:35:32 +0000 Subject: [PATCH] RichText: honor a link's newTab field The link/autolink converters never read node.fields.newTab, so setting "open in new tab" on a link in the Payload editor had no effect. Needed now that the Die Sieben post's template-download link opens a PNG in-place instead of navigating away from the article. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_013Eg6h91yngXmSnM51wxXM8 --- app/components/RichText.tsx | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/app/components/RichText.tsx b/app/components/RichText.tsx index 970c11d..54d6e9d 100644 --- a/app/components/RichText.tsx +++ b/app/components/RichText.tsx @@ -176,7 +176,11 @@ function buildConverters(quoteLabel: string): JSXConvertersFunction { }, listitem: ({ node, nodesToJSX }) =>
  • {nodesToJSX({ nodes: node.children })}
  • , link: ({ node, nodesToJSX }) => ( - + {nodesToJSX({ nodes: node.children })} ),