Coder Social home page Coder Social logo

Comments (3)

DanRibbens avatar DanRibbens commented on August 16, 2024

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?

from payload.

jesse996 avatar jesse996 commented on August 16, 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

from payload.

jesse996 avatar jesse996 commented on August 16, 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

from payload.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.