strapi plugin react editorjs
v2.0.2


yarn add strapi-plugin-react-editorjs
# or
npm install strapi-plugin-react-editorjsمن أجل أن تعرض Strapi مصغرة Tool Tool بشكل صحيح ، ستحتاج إلى تحرير خط "Strapi :: Security" في ./config/middlewares.js. قم بتغيير هذا الخط إلى ما يلي (افعل ذلك على مسؤوليتك الخاصة).
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 .customTools.js . إذا كنت ترغب في تطويرها بشكل أكبر ، فيجب عليك ذلك ، لكن الأمر سيستغرق معرفة واختبار أكثر تقدماً.yarn build
# or
npm run buildأعط نجمًا إذا ساعدك هذا المشروع.