fix: use CKEditor5 for post's credit field

This commit is contained in:
Hossein Mehrabi 2024-01-15 18:11:56 +03:30
parent 1cbfc3f2a6
commit 0e8b912b37
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
2 changed files with 14 additions and 2 deletions

View File

@ -79,7 +79,12 @@
"component": "cat.channel" "component": "cat.channel"
}, },
"credits": { "credits": {
"type": "richtext" "type": "customField",
"options": {
"output": "HTML",
"preset": "standard"
},
"customField": "plugin::ckeditor.CKEditor"
} }
} }
} }

View File

@ -898,7 +898,14 @@ export interface ApiPostPost extends Schema.CollectionType {
cover_image: Attribute.Media; cover_image: Attribute.Media;
tags: Attribute.Relation<'api::post.post', 'manyToMany', 'api::tag.tag'>; tags: Attribute.Relation<'api::post.post', 'manyToMany', 'api::tag.tag'>;
channel: Attribute.Component<'cat.channel', true>; channel: Attribute.Component<'cat.channel', true>;
credits: Attribute.RichText; credits: Attribute.RichText &
Attribute.CustomField<
'plugin::ckeditor.CKEditor',
{
output: 'HTML';
preset: 'standard';
}
>;
createdAt: Attribute.DateTime; createdAt: Attribute.DateTime;
updatedAt: Attribute.DateTime; updatedAt: Attribute.DateTime;
publishedAt: Attribute.DateTime; publishedAt: Attribute.DateTime;