#Rich text field not shown in Admin Panel [Undeleted in comments!]

2 messages · Page 1 of 1 (latest)

dense crowBOT
tidal dirge
#

i deleted my post because i thought i hadn't installed the editor, but it turns out i actually had.

my original problem is that the rich text field editor does not appear in the admin panel when creating an item in the collection. here's my collection config:

import { lexicalEditor } from '@payloadcms/richtext-lexical'
import type { CollectionConfig } from 'payload'

export const Insights: CollectionConfig = {
  slug: 'insights',
  fields: [
    {
      name: 'title',
      label: 'Title',
      type: 'text',
      required: true,
    },
    {
      name: 'content',
      label: 'Content',
      type: 'richText',
      required: true,
      editor: lexicalEditor(),
    },
    {
      name: 'scopes',
      type: 'array',
      labels: {
        singular: 'Scope',
        plural: 'Scopes',
      },
      fields: [
        {
          name: 'scope',
          type: 'select',
          options: [
            {
              label: 'Books',
              value: 'books',
            },
            {
              label: 'Movies',
              value: 'movies',
            },
            {
              label: 'Games',
              value: 'games',
            },
          ],
        },
      ],
    },
  ],
}