strapi plugin react editorjs
v2.0.2


yarn add strapi-plugin-react-editorjs
# or
npm install strapi-plugin-react-editorjsStrapiがリンクツールのサムネイルを正しく表示するには、./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 /strapi-plugin-plugin-rect-editorjs/admin/src/config/customtools.jsファイルを編集します。customTools.jsファイルで編集することはできません。さらに開発したい場合は、より高度な知識とテストが必要になります。yarn build
# or
npm run buildこのプロジェクトがあなたを助けたなら、星を贈ります。