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如果這個項目對您有幫助,請給星星。