1.1.16 • Published 12 months ago
strapi-plugin-editorjs-field v1.1.16
Features
- Support for localization
- Support light / dark theme
- The option to disable specific tools for each field individually
- Access to configuration Editor.js tools
Supported all official add-ons
- Paragraph Tool
- 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
- Attaches Tool
- Component Selector
Instalation
- Install
#npm
npm install strapi-plugin-editorjs-field
#yarn
yarn add strapi-plugin-editorjs-field
- Add configuration plugin
// config/plugins.ts
export default ({ env }) => ({
editorjs: {
enabled: true,
// resolve: "./src/plugins/strapi-plugin-editorjs-field",
config: {
header: {
inlineToolbar: [
"bold",
"italic",
"hyperlink",
"marker",
"inlineCode",
],
config: {
levels: [2, 3, 4],
defaultLevel: 2,
},
},
paragraph: : { inlineToolbar: true },
list: { inlineToolbar: true },
checklist: { inlineToolbar: true },
embed: null,
table: { inlineToolbar: true },
warning: null,
code: null,
link_tool: {
config: {
endpoint: `/api/editorjs/link`, // is required, this need for parser
},
},
raw: null,
quote: { inlineToolbar: true },
marker: null,
delimiter: null,
inlineCode: null,
image: null,
attaches: null,
component: null,
minHeight: 200,
},
},
});
- To ensure Strapi displays Link Tool thumbnails correctly, you should make a modification in the './config/middlewares.js' file. Please replace the 'strapi::security' line with the following (please proceed with caution):
// ./config/middlewares.js
export default [
...
{
name: "strapi::security",
config: {
contentSecurityPolicy: {
useDefaults: true,
directives: {
"img-src": ["'self'", "data:", "blob:"],
"media-src": ["'self'", "data:", "blob:"],
upgradeInsecureRequests: null,
},
},
},
},
...
];
- Add custom field in collection type or single type
- Add field name
- Configure tools
Thanks
License
1.1.9
12 months ago
1.1.8
12 months ago
1.1.12
12 months ago
1.1.11
12 months ago
1.1.10
12 months ago
1.1.16
12 months ago
1.1.15
12 months ago
1.1.14
12 months ago
1.1.13
12 months ago
1.1.7
1 year ago
1.1.6
1 year ago
1.1.5
1 year ago
1.1.4
1 year ago
1.1.3
1 year ago
1.1.1
2 years 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
1.0.0
2 years ago