strapi plugin react editorjs
v2.0.2


yarn add strapi-plugin-react-editorjs
# or
npm install strapi-plugin-react-editorjs为了使Strapi正确显示链接工具缩略图,您需要在./config/middlewares.js中编辑“ Strapi :: Security”行。将该行更改为以下(以您自己的风险这样做)。
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 file。customTools.js文件中进行编辑。如果您想进一步开发它,您可能会进行更高级的知识和测试。yarn build
# or
npm run build如果这个项目对您有帮助,请给星星。