strapi plugin react editorjs
v2.0.2


yarn add strapi-plugin-react-editorjs
# or
npm install strapi-plugin-react-editorjsเพื่อให้ Strapi แสดงภาพขนาดย่อของเครื่องมือลิงก์อย่างถูกต้องคุณจะต้องแก้ไขบรรทัด '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.jscustomTools.js หากคุณต้องการพัฒนาต่อไปคุณอาจใช้ความรู้และการทดสอบขั้นสูงมากขึ้นyarn build
# or
npm run buildให้ดาวถ้าโครงการนี้ช่วยคุณได้