GregorSondermeier / strapi-plugin-editorjs

A Strapi v4 compatible plugin that registers a custom field for Editor.js rich text content

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

strapi-plugin-editorjs

A Strapi v4 compatible plugin that provides a custom field for Editor.js rich text content.

To use, add these lines to your model schema:

{
  // ...
  "attributes": {
    // ...
    "<attributeName>": {
      "type": "customField",
      "customField": "plugin::editorjs.editorjs"
    }
  }
}

Enabling/Disabling

The plugin can be enabled/disabled in the plugins.js configuration file of your Strapi project.

// ./config/plugins.js

module.exports = ({ env }) => ({
  // ...
  
  editorjs: {
    enabled: true // or false
  },
  
  // ...
});

Configuration

Currently, this plugin can not be configured.

Documentation

https://editorjs.io/

About

A Strapi v4 compatible plugin that registers a custom field for Editor.js rich text content

License:MIT License


Languages

Language:JavaScript 85.4%Language:CSS 14.6%