Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/ayecue/raw-draftjs-to-tree


https://github.com/ayecue/raw-draftjs-to-tree

Last synced: 15 days ago
JSON representation

Awesome Lists containing this project

README

        

# raw-draftjs-to-tree
Converts a RawDraftContentState to a tree 🌲

Inspired by [rawdraftjs-to-tree](https://github.com/AladdiX/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.