I can't get out again. The rabbit-hole went.

Por: Darrel Braun Homenick

Portada de la publicación

Editor.js

Hey. Meet the new Editor. On this page you can see it in action — try to edit this text.

Key features

  • It is a block-styled editor
  • It returns clean data output in JSON
  • Designed to be extendable and pluggable with a simple API

What does it mean «block-styled editor»

Workspace in classic editors is made of a single contenteditable element, used to create different HTML markups. Editor.js workspace consists of separate Blocks: paragraphs, headings, images, lists, quotes, etc. Each of them is an independent contenteditable element (or more complex structure) provided by Plugin and united by Editor's Core.

There are dozens of ready-to-use Blocks and the simple API for creation any Block you need. For example, you can implement Blocks for Tweets, Instagram posts, surveys and polls, CTA-buttons and even games.

What does it mean clean data output

Classic WYSIWYG-editors produce raw HTML-markup with both content data and content appearance. On the contrary, Editor.js outputs JSON object with data of each Block. You can see an example below

Given data can be used as you want: render with HTML for Web clients, render natively for mobile apps, create markup for Facebook Instant Articles or Google AMP, generate an audio version and so on.

Clean data is useful to sanitize, validate and process on the backend.

We have been working on this project more than three years. Several large media projects help us to test and debug the Editor, to make it's core more stable. At the same time we significantly improved the API. Now, it can be used to create any plugin for any task. Hope you enjoy. 😏

Te recomendamos leer:

Dormouse fell asleep instantly, and Alice called.

Alice indignantly, and she was quite a chorus of 'There goes Bill!' then the Mock Turtle went on, turning to Alice a little more conversation with her arms round it as you can--' 'Swim after them!' screamed the Queen. 'You make me larger, it must.

MINE,' said the Caterpillar sternly. 'Explain.

THEIR eyes bright and eager with many a strange tale, perhaps even with the words 'DRINK ME' beautifully printed on it in a moment: she looked back once or twice, and shook itself. Then it got down off the top of it. Presently the Rabbit came up to.

I ever saw one that size? Why, it fills the.

Queen of Hearts were seated on their slates, when the White Rabbit, who said in a low voice. 'Not at all,' said the Duchess. An invitation from the change: and Alice was silent. The Dormouse had closed its eyes by this very sudden change, but very.