strapi plugin react editorjs
v2.0.2


yarn add strapi-plugin-react-editorjs
# or
npm install strapi-plugin-react-editorjsЧтобы Strapi правильно показал миниатюры инструмента ссылки, вам нужно будет отредактировать линию «Strapi :: Security» в ./config/middlewares.js. Измените эту линию на следующее (сделайте это на свой собственный риск).
module . exports = [
// ...
{
name : 'strapi::security' ,
config : {
contentSecurityPolicy : {
directives : {
'img-src' : [ '*' ] ,
} ,
}
} ,
} ,
// ...
] ; Если вы хотите изменить внешний вид редактора или добавить/удалить плагины Editorjs, вам нужно будет сделать следующее:
yarn remove strapi-plugin-react-editorjs
# or
npm uninstall strapi-plugin-react-editorjs # If you wish to clone the Master Branch
git clone https://github.com/melishev/strapi-plugin-react-editorjs.git
# If you wish to clone the Beta Branch
git clone --single-branch --branch beta https://github.com/melishev/strapi-plugin-react-editorjs.gitcd strapi-plugin-react-editorjsyarn install или npm install module . exports = ( { env } ) => ( {
// ...
'editorjs' : {
enabled : true ,
resolve : './src/plugins/strapi-plugin-react-editorjs'
} ,
// ...
} )./src/plugins/strapi-plugin-react-editorjs/admin/src/config/customTools.js .customTools.js . Если вы хотите развивать его дальше, вы можете, но это потребует гораздо более продвинутых знаний и тестирования.yarn build
# or
npm run buildДайте звезду, если этот проект помог вам.