0.0.9 • Published 11 months ago

@fudgi-packages/editorjs-to-html v0.0.9

Weekly downloads
-
License
MIT
Repository
github
Last release
11 months ago

editorjs-to-html

An utility to parse editorjs JSON data to HTML code which looks like as you see in editor mode. Supports basic editorjs blocks which are customizable as well. Extendable.

Installation

run npm install editorjs-html

Usage

import edjsParser from 'editorjs-to-html';

const edjsParser = edjsHTML();

let html = edjsParser.parse(editorjs_clean_data);

You can also extend pre-configured blocks by putting object in edjsHTML which has an structure:

{'block-name': (args) => template}

Supported Block Types

  • alertText,
  • checklist,
  • code,
  • delimiter,
  • header,
  • image/simple-image,
  • LinkTool,
  • list,
  • paragraph,
  • quote,
  • raw,
  • table,
  • warning,
  • embed,
  • alert

License

MIT Public License

0.0.9

11 months ago

0.0.8

11 months ago

0.0.7

11 months ago

0.0.4

11 months ago

0.0.6

11 months ago

0.0.3

11 months ago

0.0.2

11 months ago

0.0.1

11 months ago