Node of richText is missing type

default discord avatar
12 months ago
1 1

Node of richText is missing type



expected format is: { "children":[{"text":""}], type: "paragraph" }

  • default discord avatar
    10 months ago

    I believe this is intentional. Slate is schema-less, so each implementation of Slate defines its own schema.

    In the case of Payload CMS, paragraph is not set as a fallback for nodes with no type. This differs from the Slate demo, where paragraph is set on nodes.

    In the docs for the rich text field, the serializer example renders the <p> HTML element as the default - i.e. if no types are found. See

    So I am guessing this is what you are expected to do? If the type is undefined, assume it's a paragraph!

Open the post
Continue the discussion in GitHub
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.