1.0.2 • Published 6 years ago

raw-content-state-to-tree v1.0.2

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

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.