CodeX editorjs.io

Editor.js — next generation block-style text editor  ↦

This new take on a block-style text editor from CodeX looks promising. Unlike how the common WYSIWYG editor produces raw HTML markup with both content data and content appearance, Editor.js outputs a JSON object with the data of each block of content. Here’s an example of how this news item would look.

{
  "time": 1554306305,
  "blocks": [
    {
      "type": "header",
      "data": {
        "text": "Editor.js — next generation block-style text editor",
        "level": 1
      }
    },
    {
      "type": "paragraph",
      "data": {
        "text": "This new take on a block-style text editor looks promising. Unlike how the common WYSIWYG editor produces raw HTML markup with both content data and content appearance, Editor.js outputs a JSON object with the data of each block of content. Here's an example of how this news item would look."
      }
    },
    {
      "type": "code",
      "data": {
        "code": ""
      }
    }
  ],
  "version": "2.12.3"
}

Discussion

Sign in or Join to comment or subscribe

Player art
  0:00 / 0:00