feat: add imagevault images to RTE
This commit is contained in:
@@ -6,6 +6,7 @@ import { Button } from "@scandic-hotels/design-system/current"
|
||||
import Image from "@/components/Image"
|
||||
import JsonToHtml from "@/components/JsonToHtml"
|
||||
|
||||
import { renderOptions as currentRenderOption } from "./../../currentRenderOptions"
|
||||
import { renderOptions } from "./renderOptions"
|
||||
|
||||
import styles from "./puff.module.css"
|
||||
@@ -44,7 +45,7 @@ export default function Puff({
|
||||
<JsonToHtml
|
||||
embeds={[]}
|
||||
nodes={text.json.children}
|
||||
renderOptions={renderOptions}
|
||||
renderOptions={{ ...currentRenderOption, ...renderOptions }}
|
||||
/>
|
||||
<div>
|
||||
<Button onPress={onClick}>{link.title || title}</Button>
|
||||
|
||||
Reference in New Issue
Block a user