strapi plugin react editorjs
v2.0.2


yarn add strapi-plugin-react-editorjs
# or
npm install strapi-plugin-react-editorjsDamit Strapi die Miniaturansichten des Link -Tools richtig anzeigen können, müssen Sie die Linie "CRARTI :: Security" in ./config/middlewares.js bearbeiten. Ändern Sie diese Linie in Folgendes (tun Sie dies auf eigenes Risiko).
module . exports = [
// ...
{
name : 'strapi::security' ,
config : {
contentSecurityPolicy : {
directives : {
'img-src' : [ '*' ] ,
} ,
}
} ,
} ,
// ...
] ; Wenn Sie das Aussehen des Editors ändern oder EditorJS -Plugins hinzufügen/entfernen möchten, müssen Sie Folgendes erstellen:
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 oder 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 bearbeitet werden. Wenn Sie es weiterentwickeln möchten, können Sie es auch sein, aber es wird viel fortgeschritteneres Wissen und Tests benötigen.yarn build
# or
npm run buildGeben Sie einen Stern, wenn dieses Projekt Ihnen geholfen hat.