0.0.4 • Published 3 years ago

editorjs-to-portabletext v0.0.4

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

EditorJS to Portable Text

This library can be used to convert between a Editor.js block structure and a Sanity Portable Text structure.

From EditorJS to Sanity

import { EditorJSConverter } from 'editorjs-to-portabletext';
const converter = new EditorJSConverter();
const portableText = converter.convert(editorJsContent);

From Sanity to EditorJS

import { PortableTextConverter } from 'editorjs-to-portabletext';
const converter = new PortableTextConverter();
const editorJsContent = converter.convert(portableText);
0.0.4

3 years ago

0.0.3

3 years ago

0.0.2

3 years ago

0.0.1

3 years ago