2.6.1 • Published 11 months ago
@acf-int/strapi-plugin-editorjs v2.6.1
What it is?
This is a plugin for Strapi Headless CMS that replaces the standard wysiwyg editor with the Editor.js. This plugin is a fork of strapi-plugin-react-editorjs refactored to use in acf team.
Supported official add-ons
TODO: Update later
- Paragraph Tool (default)
- Embed Tool
- Table tool
- List Tool
- Warning Tool
- Code Tool
- Link Tool
- Image Tool
- Raw HTML Tool
- Heading Tool
- Quote Tool
- Marker Tool
- Checklist Tool
- Delimiter Tool
- InlineCode Tool
- Typograf Tool
- Highlight Blocktune
- Personality Tool
- Attaches Tool
Getting Started
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": ["*"],
},
},
},
},
// ...
];
All plugins are disabled by default. If you need to enable editorjs plugin, you can provide a boolean flag in config/plugins.js
module.exports = {
editorjs: {
enabled: true,
config: {
header: true,
image: true,
quote: true,
// Other available plugins
typograf: false,
highlight: false,
embed: false,
table: false,
list: false,
warning: false,
code: false,
LinkTool: false,
raw: false,
checklist: false,
delimiter: false,
marker: false,
inlineCode: false,
},
},
};
How to contribute
Clone repository
Install dependencies
cd strapi-plugin-editorjs
yarn install
Create strapi app next to plugin
cd ..
npx create-strapi-app strapi-playground
Create plugins.js in config folder and add this code
module.exports = {
...
editorjs: {
enabled: true,
resolve: "../strapi-plugin-editorjs",
},
};
Start strapi in watch admin mode
yarn strapi develop --watch-admin
In development
- Full screen mode
- Settings tab to configure plugins
- Medialib modal to upload images
2.5.0
11 months ago
2.6.1
11 months ago
2.6.0
11 months ago
2.4.1
1 year ago
2.4.0
1 year ago
2.4.3
1 year ago
2.4.2
1 year ago
1.1.1
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.2
1 year ago
2.3.0
1 year ago
2.2.0
1 year ago
2.3.2
1 year ago
2.3.1
1 year ago
2.1.0
1 year ago
2.0.1
1 year ago
2.0.0
1 year ago
1.1.0
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago