feat: add imagevault images to RTE

This commit is contained in:
Christel Westerberg
2024-07-01 17:09:48 +02:00
parent 450160c2ba
commit 8956edbd2f
11 changed files with 577 additions and 33 deletions

View File

@@ -1,5 +1,7 @@
import JsonToHtml from "@/components/JsonToHtml"
import { renderOptions } from "./../currentRenderOptions"
import type { TextProps } from "@/types/components/current/blocks/text"
export default function Text({ text }: TextProps) {
@@ -7,6 +9,7 @@ export default function Text({ text }: TextProps) {
<JsonToHtml
embeds={text.content.embedded_itemsConnection.edges}
nodes={text.content.json.children}
renderOptions={renderOptions}
/>
)
}