mirror of https://github.com/acid-info/lpe-cms.git
fix: use CKEditor5 for post's credit field
This commit is contained in:
parent
1cbfc3f2a6
commit
0e8b912b37
|
@ -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"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue