install ckeditor5 and tiptap editors

This commit is contained in:
Hossein Mehrabi 2024-01-12 16:37:57 +03:30
parent 66f50bd545
commit 7d54573974
No known key found for this signature in database
GPG Key ID: 45C04964191AFAA1
3 changed files with 7 additions and 0 deletions

View File

@ -2,17 +2,21 @@
* This file was automatically generated by Strapi.
* Any modifications made will be discarded.
*/
import ckeditor from "@ckeditor/strapi-plugin-ckeditor/strapi-admin";
import strapiCloud from "@strapi/plugin-cloud/strapi-admin";
import graphql from "@strapi/plugin-graphql/strapi-admin";
import i18N from "@strapi/plugin-i18n/strapi-admin";
import usersPermissions from "@strapi/plugin-users-permissions/strapi-admin";
import strapiTiptapEditor from "strapi-tiptap-editor/strapi-admin";
import { renderAdmin } from "@strapi/strapi/admin";
renderAdmin(document.getElementById("strapi"), {
plugins: {
ckeditor: ckeditor,
"strapi-cloud": strapiCloud,
graphql: graphql,
i18n: i18N,
"users-permissions": usersPermissions,
"strapi-tiptap-editor": strapiTiptapEditor,
},
});

1
config/plugins.ts Normal file
View File

@ -0,0 +1 @@
export default {};

View File

@ -11,6 +11,7 @@
},
"devDependencies": {},
"dependencies": {
"@ckeditor/strapi-plugin-ckeditor": "^0.0.10",
"@strapi/plugin-cloud": "4.16.2",
"@strapi/plugin-graphql": "4.16.2",
"@strapi/plugin-i18n": "4.16.2",
@ -20,6 +21,7 @@
"react": "^18.0.0",
"react-dom": "^18.0.0",
"react-router-dom": "5.3.4",
"strapi-tiptap-editor": "^0.9.12",
"styled-components": "5.3.3"
},
"author": {