BASE

Editor.js

Editor.js

Embeddable editor · Free

A block-based web editor that saves structured JSON: helps build content applications with independent blocks and plugins.

Also known as: codex-team/editor.js; editorjs; editor.js; block-editor

Resource illustration: Editor.js

Open resource ↗

What you can use for free

Code and local use under Apache-2.0.

Paid features and costs

Computing resources, self-hosting, and external services are paid for separately if used.

Access and limitations

Code and local use under Apache-2.0. Computing resources, self-hosting, and external services are paid for separately if used.

Use cases

  • Save block content as JSON
  • Connect editing, serialization, and rendering of saved JSON blocks

Example workflow

A possible workflow; this is not a report of hands-on testing.

Save block content as JSON.

Before you start

  • The document schema and storage formats.
  • A web application and permissions model.

Steps

  1. Choose block tools and the document structure.
  2. Connect editing, serialization, and rendering of saved JSON blocks.
  3. Check round-trip conversion, pasting, and handling of untrusted content.

Check your result

  • The saved document can be restored without losing structure.
  • HTML and links are handled safely when displayed.

Choosing Editor.js

Save block content as JSON

Choose this when

  • Save block content as JSON
  • Connect editing, serialization, and rendering of saved JSON blocks

Consider alternatives when

  • When choosing for this topic, compare Editor.js with Milkdown. A candidate to compare under the topic: UI components, In-app text editors. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.
  • When choosing for this topic, compare Editor.js with Tiptap. A candidate to compare under the topic: UI components, In-app text editors. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

Things to consider

  • Costs and limits of free use: Computing resources, self-hosting, and external services are paid for separately if used.
  • Terms of use: Apache-2.0 for the code; third-party components retain their own terms.
  • Collaborative editing appears in the roadmap with unfinished items; this does not establish ready-made built-in collaboration.

Frequently asked questions

What can you use for free in Editor.js?

Code and local use under Apache-2.0.

What additional costs might arise with Editor.js?

Computing resources, self-hosting, and external services are paid for separately if used.

What terms of use matter for Editor.js?

Apache-2.0 for the code; third-party components retain their own terms.

How do you get started with Editor.js?

Choose block tools and the document structure. Connect editing, serialization, and rendering of saved JSON blocks. Check round-trip conversion, pasting, and handling of untrusted content.

Who saves JSON and adds blocks in Editor.js?

The application calls editor.save() and handles the returned Promise containing data. Block types are connected through separate Tools: headings, quotes, images, lists, tables, code, and others. The README separately identifies Simple Image as an option without a backend requirement.

Related tasks and approaches

  • Milkdown

    A candidate to compare under the topic: UI components, In-app text editors. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

  • Tiptap

    A candidate to compare under the topic: UI components, In-app text editors. This is an editorial connection by topic, not a confirmed alternative or a guarantee that the products work together.

License

Apache-2.0 for the code; third-party components retain their own terms.

Apache 2.0 — permissive license with patent terms

You can use and modify the code in commercial and closed-source projects. When distributing it, retain the license and relevant notices, identify modified files, and include NOTICE if provided. Authors grant a limited patent license for their contributions; it does not grant permission to use trademarks.

License terms

Technologies and topics

  • Editor.js
  • editor
  • Development

Sources

Other resources