How do component preview templates work with richtext components?

Hey storyblok Team, I don’t seem to get how the component preview template works with richtext components.

I used the same approach as described in here https://www.storyblok.com/docs/schema-configuration#topic-preview without success. All I am getting is a [object Object]. It is working perfectly fine with other components like normal texts or images.

Screenshots attached.

Any idea what I’m doing wrong? Thanks, Mato.

Hello Mato,

here is an example that shows how to access the content of a rich-text field and how the JSON structure looks like:

Works like a charme! Thanks a lot :slightly_smiling_face:

1 Like