raw-content-state-to-tree

1.0.2 • Public • Published

raw-draftjs-to-tree

Converts a RawDraftContentState to a tree 🌲

Inspired by rawdraftjs-to-tree

How to use

Look into the example provided in the "examples" directory. But as a short explanation: This library converts a raw draftjs object to a simple tree. This makes it then very easy to convert the tree to any format you want. In the example provided it converts the tree to pure html.

Package Sidebar

Install

npm i raw-content-state-to-tree

Weekly Downloads

3

Version

1.0.2

License

MIT

Last publish

Collaborators

  • ayecue