Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ayecue/raw-draftjs-to-tree
https://github.com/ayecue/raw-draftjs-to-tree
Last synced: 15 days ago
JSON representation
- Host: GitHub
- URL: https://github.com/ayecue/raw-draftjs-to-tree
- Owner: ayecue
- License: mit
- Created: 2017-12-01T08:22:47.000Z (about 7 years ago)
- Default Branch: master
- Last Pushed: 2018-05-09T10:15:09.000Z (over 6 years ago)
- Last Synced: 2024-12-09T23:30:01.321Z (about 1 month ago)
- Language: HTML
- Size: 31.3 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.