directus-extension-editorjs-interface

1.1.1 • Public • Published

Editor.js - Directus extension

Block-styled editor for rich media stories, outputs clean data in JSON. More info at https://editorjs.io/

Installation

In your Directus installation root

npm install directus-extension-editorjs

Restart directus

Usage

To use this custom interface into a data model, you have to:

  • Add a simple field with JSON type
  • In the Interface section on the left choose Editor.js
  • Enjoy ! 🎉

Example output of the interface

{
	"version": "2.19.0",
	"time": 1607174917790,
	"blocks": [
		{
			"type": "paragraph",
			"data": {
				"text": "Paragraph from editorjs interface in Directus."
			}
		}
	]
}

For more info check https://editorjs.io/base-concepts#what-is-clean-data

Building locally and contributing

You can also clone this repository and build it by yourself.

npm ci
npm run build

Then use dist/index.js in your custom /extensions/interfaces directory or in whatever you want.

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
1.1.11latest

Version History

VersionDownloads (Last 7 Days)Published
1.1.11
1.1.00
1.0.90
1.0.80
1.0.71
1.0.60
1.0.50
1.0.40
1.0.30
1.0.20
1.0.10
1.0.00

Package Sidebar

Install

npm i directus-extension-editorjs-interface

Weekly Downloads

2

Version

1.1.1

License

gpl-3.0

Unpacked Size

993 kB

Total Files

4

Last publish

Collaborators

  • dcheglakov