β οΈ This is the Strapi v4 version of this plugin! In order to use with v3, please use release v.1.5.1.
yarn add strapi-plugin-react-editorjs
# or
npm install strapi-plugin-react-editorjs
In order for Strapi to show the Link Tool thumbnails correctly, you will need to edit the 'strapi::security' line in ./config/middlewares.js. Change that line to the following (do this at your own risk).
module.exports = [
// ...
{
name: 'strapi::security',
config: {
contentSecurityPolicy: {
directives: {
'img-src': ['*'],
},
}
},
},
// ...
];
If you want to change the look of the editor or add/remove editorJS plugins, you will need to do the following:
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.git
cd strapi-plugin-react-editorjs
yarn install
or 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
file. If you wish to develop it further, you may, but it will take much more advanced knowledge and testing.yarn build
# or
npm run build
Give a star if this project helped you.