add ckeditor
This commit is contained in:
1007
package-lock.json
generated
1007
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -10,12 +10,12 @@
|
|||||||
"strapi": "strapi",
|
"strapi": "strapi",
|
||||||
"deploy": "strapi deploy"
|
"deploy": "strapi deploy"
|
||||||
},
|
},
|
||||||
"devDependencies": {},
|
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@strapi/strapi": "4.25.20",
|
"@_sh/strapi-plugin-ckeditor": "^3.0.9",
|
||||||
"@strapi/plugin-users-permissions": "4.25.20",
|
|
||||||
"@strapi/plugin-i18n": "4.25.20",
|
|
||||||
"@strapi/plugin-cloud": "4.25.20",
|
"@strapi/plugin-cloud": "4.25.20",
|
||||||
|
"@strapi/plugin-i18n": "4.25.20",
|
||||||
|
"@strapi/plugin-users-permissions": "4.25.20",
|
||||||
|
"@strapi/strapi": "4.25.20",
|
||||||
"mysql": "2.18.1",
|
"mysql": "2.18.1",
|
||||||
"react": "^18.0.0",
|
"react": "^18.0.0",
|
||||||
"react-dom": "^18.0.0",
|
"react-dom": "^18.0.0",
|
||||||
|
|||||||
26
src/api/display1/content-types/display1/schema.json
Normal file
26
src/api/display1/content-types/display1/schema.json
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
{
|
||||||
|
"kind": "collectionType",
|
||||||
|
"collectionName": "display1s",
|
||||||
|
"info": {
|
||||||
|
"singularName": "display1",
|
||||||
|
"pluralName": "display1s",
|
||||||
|
"displayName": "display1",
|
||||||
|
"description": ""
|
||||||
|
},
|
||||||
|
"options": {
|
||||||
|
"draftAndPublish": true
|
||||||
|
},
|
||||||
|
"pluginOptions": {},
|
||||||
|
"attributes": {
|
||||||
|
"text1": {
|
||||||
|
"type": "string"
|
||||||
|
},
|
||||||
|
"ck1": {
|
||||||
|
"type": "customField",
|
||||||
|
"options": {
|
||||||
|
"preset": "default"
|
||||||
|
},
|
||||||
|
"customField": "plugin::ckeditor5.CKEditor"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
7
src/api/display1/controllers/display1.ts
Normal file
7
src/api/display1/controllers/display1.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* display1 controller
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi'
|
||||||
|
|
||||||
|
export default factories.createCoreController('api::display1.display1');
|
||||||
7
src/api/display1/routes/display1.ts
Normal file
7
src/api/display1/routes/display1.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* display1 router
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreRouter('api::display1.display1');
|
||||||
7
src/api/display1/services/display1.ts
Normal file
7
src/api/display1/services/display1.ts
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
/**
|
||||||
|
* display1 service
|
||||||
|
*/
|
||||||
|
|
||||||
|
import { factories } from '@strapi/strapi';
|
||||||
|
|
||||||
|
export default factories.createCoreService('api::display1.display1');
|
||||||
39
types/generated/contentTypes.d.ts
vendored
39
types/generated/contentTypes.d.ts
vendored
@ -362,6 +362,44 @@ export interface AdminUser extends Schema.CollectionType {
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export interface ApiDisplay1Display1 extends Schema.CollectionType {
|
||||||
|
collectionName: 'display1s';
|
||||||
|
info: {
|
||||||
|
description: '';
|
||||||
|
displayName: 'display1';
|
||||||
|
pluralName: 'display1s';
|
||||||
|
singularName: 'display1';
|
||||||
|
};
|
||||||
|
options: {
|
||||||
|
draftAndPublish: true;
|
||||||
|
};
|
||||||
|
attributes: {
|
||||||
|
ck1: Attribute.RichText &
|
||||||
|
Attribute.CustomField<
|
||||||
|
'plugin::ckeditor5.CKEditor',
|
||||||
|
{
|
||||||
|
preset: 'default';
|
||||||
|
}
|
||||||
|
>;
|
||||||
|
createdAt: Attribute.DateTime;
|
||||||
|
createdBy: Attribute.Relation<
|
||||||
|
'api::display1.display1',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
publishedAt: Attribute.DateTime;
|
||||||
|
text1: Attribute.String;
|
||||||
|
updatedAt: Attribute.DateTime;
|
||||||
|
updatedBy: Attribute.Relation<
|
||||||
|
'api::display1.display1',
|
||||||
|
'oneToOne',
|
||||||
|
'admin::user'
|
||||||
|
> &
|
||||||
|
Attribute.Private;
|
||||||
|
};
|
||||||
|
}
|
||||||
|
|
||||||
export interface PluginContentReleasesRelease extends Schema.CollectionType {
|
export interface PluginContentReleasesRelease extends Schema.CollectionType {
|
||||||
collectionName: 'strapi_releases';
|
collectionName: 'strapi_releases';
|
||||||
info: {
|
info: {
|
||||||
@ -798,6 +836,7 @@ declare module '@strapi/types' {
|
|||||||
'admin::transfer-token': AdminTransferToken;
|
'admin::transfer-token': AdminTransferToken;
|
||||||
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
'admin::transfer-token-permission': AdminTransferTokenPermission;
|
||||||
'admin::user': AdminUser;
|
'admin::user': AdminUser;
|
||||||
|
'api::display1.display1': ApiDisplay1Display1;
|
||||||
'plugin::content-releases.release': PluginContentReleasesRelease;
|
'plugin::content-releases.release': PluginContentReleasesRelease;
|
||||||
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
'plugin::content-releases.release-action': PluginContentReleasesReleaseAction;
|
||||||
'plugin::i18n.locale': PluginI18NLocale;
|
'plugin::i18n.locale': PluginI18NLocale;
|
||||||
|
|||||||
Reference in New Issue
Block a user