Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

richText not show in admin panel #6688

Closed
jesse996 opened this issue Jun 9, 2024 · 3 comments
Closed

richText not show in admin panel #6688

jesse996 opened this issue Jun 9, 2024 · 3 comments
Labels

Comments

@jesse996
Copy link

jesse996 commented Jun 9, 2024

Link to reproduction

No response

Payload Version

3.0.0-beta.43

Node Version

20.14.0

Next.js Version

15.0.0-rc.0

Describe the Bug

richText not show in admin panel

Reproduction Steps

richText not show in admin panel

Adapters and Plugins

No response

@jesse996 jesse996 added status: needs-triage Possible bug which hasn't been reproduced yet v3 labels Jun 9, 2024
@DanRibbens
Copy link
Contributor

This is not enough information to reproduce or solve this issue.

Are you trying to use Slate or Lexical? What settings do you have in your payload config for richtext?

@DanRibbens DanRibbens added status: needs-repro If an issue does not include a reproduction and removed status: needs-triage Possible bug which hasn't been reproduced yet labels Jun 9, 2024
@jesse996
Copy link
Author

jesse996 commented Jun 10, 2024

my payload config file:

// storage-adapter-import-placeholder
import { postgresAdapter } from '@payloadcms/db-postgres'
import {
  AlignFeature,
  BlockquoteFeature,
  BlocksFeature,
  BoldFeature,
  ChecklistFeature,
  HeadingFeature,
  IndentFeature,
  InlineCodeFeature,
  ItalicFeature,
  lexicalEditor,
  LinkFeature,
  OrderedListFeature,
  ParagraphFeature,
  RelationshipFeature,
  UnorderedListFeature,
  UploadFeature,
} from '@payloadcms/richtext-lexical'
import path from 'path'
import { buildConfig } from 'payload/config'
import { fileURLToPath } from 'url'
import sharp from 'sharp'

import { Users } from './src/collections/Users'
import { Media } from './src/collections/Media'
import QuestionItem from './src/collections/exams/QuestionItem'
import { Test } from './src/collections/Test'
import { Chapter } from './src/collections/exams/Chapter'
import { Question } from './src/collections/exams/Question'
import { UsersQuestionRecord } from './src/collections/exams/UserQuestionRecord'
import { UsersChapterRecord } from './src/collections/exams/UserChapterRecord'
import { CardGroup } from './src/collections/card/CardGroup'
import { CardItem } from './src/collections/card/CardItem'
import { UserCardGroupRecord } from './src/collections/card/UserCardGroupRecord'
import { UserCardItemRecord } from './src/collections/card/UserCardItemRecord'
import { UserSlut } from '@/sluts'
import { ResouceGroup } from '@/collections/resource/ResourceGroup'
import { ResourceItem } from '@/collections/resource/ResourceItem'
import { slateEditor } from '@payloadcms/richtext-slate'
import { en } from 'payload/i18n/en'

const filename = fileURLToPath(import.meta.url)
const dirname = path.dirname(filename)

export default buildConfig({
  admin: {
    user: UserSlut,
    meta: {
      titleSuffix: 'review app',
    },
  },
  editor: lexicalEditor({}),

  collections: [
    {
      slug: 'pages',
      admin: {
        useAsTitle: 'title',
      },
      fields: [
        {
          name: 'title',
          type: 'text',
        },
        {
          name: 'content',
          type: 'richText',
        },
      ],
    },
  ],
  secret: process.env.PAYLOAD_SECRET || '',
  typescript: {
    outputFile: path.resolve(dirname, 'payload-types.ts'),
  },
  i18n: {
    supportedLanguages: { en },
  },

  db: postgresAdapter({
    pool: {
      connectionString: process.env.DATABASE_URI || '',
    },
  }),
  sharp,
  plugins: [
    // storage-adapter-placeholder
  ],
  telemetry: false,
})

the post slug only show title filed,the content not showing
image

both the two editor not showing

@jesse996
Copy link
Author

jesse996 commented Jun 10, 2024

oh i finallyfind it out ,i have to install @payloadcms/ui , but the create-payload-app@beta does not install it by default,ant there is no document

@github-actions github-actions bot removed the status: needs-repro If an issue does not include a reproduction label Jun 10, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants