RichText -> Portable Text

default discord avatar
2 months ago

Is there anything in Payload API or in what we receive from the API that can convert a richText field to "Portable Text" so something like

could be used for rendering?

  • default discord avatar
    2 months ago

    Good morning @hades200082 - thanks for the question. Payload uses "Slate" as its rich text editor currentlly (others have been proposed). I personally do not know much about portabletext, but I did find a fiddle that may be relevant?

    Slate + Portabletext demo (Codesandbox) -

    Let us know if you figure out anything cool!

Open the post
Continue the discussion in Discord
Like what we're doing?
Star us on GitHub!


Connect with the Payload Community on Discord



Can't find what you're looking for?

Get help straight from the Payload team with an Enterprise License.