Add more blocks to posts
Some checks failed
continuous-integration/drone/push Build is failing

This commit is contained in:
tobias 2024-05-21 12:07:14 +02:00
parent 4b30d58db6
commit 7dbc81c5b2

View File

@ -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",
},