Comments (3)
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.
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
both the two editor not showing
from payload.
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)
- Incorrect req.locale inside access control functions
- "[DEP0040] The punycode module is deprecated" with Node.js 22.4.0 HOT 1
- Mongo collation enabled by default on v2.24.2 HOT 3
- Default values from field config not being set on DB schema in postgres HOT 3
- Hooks hanging indefinitely on create operation to collection with relation back to triggering collection HOT 5
- Mismatching payload dependency versions found: [email protected], @payloadcms/[email protected] HOT 3
- Integer field (e.g. ID) with contains filter on postgres breaks/crashes the application completely. HOT 3
- Can’t use payload in `admin.condition` function of field, can’t use async/await, can’t create options for select field dynamically HOT 1
- Duplicate Declaration in src/payload-types.ts HOT 1
- Performance issues with many lexical rich text editors in one document HOT 2
- Nested localized arrays break db-postgres in v3 beta
- richtext-lexical crushes admin payload v3 HOT 2
- db-postgres : Upgrade v3.0.0-beta.67 -> v3.0.0-beta.69 throws error HOT 4
- Condition should hide field from filter and grid both HOT 1
- Condition should hide field from filter and grid both
- Lexical editor RelationshipFeature ignoring enabledCollections and disabledCollections HOT 1
- Wrong validation of Password field & New Password should be matched with Confirm Password before creating a new User in Payload HOT 2
- Data missing from version comparison when using localization HOT 2
- Setting admin route to "/" causes "/login" to render in infinite loop
- Migrations no longer work correctly HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from payload.