From 7dbc81c5b2912796bee26c8b9828b64933654bc2 Mon Sep 17 00:00:00 2001 From: tobias Date: Tue, 21 May 2024 12:07:14 +0200 Subject: [PATCH] Add more blocks to posts --- payload/src/collections/Posts.ts | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/payload/src/collections/Posts.ts b/payload/src/collections/Posts.ts index 1c931ee..69807db 100644 --- a/payload/src/collections/Posts.ts +++ b/payload/src/collections/Posts.ts @@ -71,7 +71,7 @@ const Posts: CollectionConfig = { name: "content", type: "richText", admin: { - elements: ["h2", "h3", "h4", "link", "ol", "ul", "upload"], + elements: ["h2", "h3", "h4", "link", "ol", "ul", "upload", "blockquote", "indent"], leaves: ["bold", "italic", "underline"], upload: { collections: { @@ -90,11 +90,10 @@ const Posts: CollectionConfig = { }, }, { - name: "authors", + name: "author", //TODO: Add active user as default type: 'relationship', - relationTo: 'authors', - hasMany: true, + relationTo: 'authors', admin: { position: "sidebar", },