Draft.js Data Model Demo

2016-03-11 12:52:16 -0500

Facebook released a very interesting React-based rich text editor called Draft.js. The advantage of something like is that you have much more control over the data model for structured documents.

The documentation is a little sparse on examples of what the underlying data model looks like, so I build this quick demo that renders the data model in JSON.

See it live here.

{% picture wp/uploads/2016/03/Screen-Shot-2016-03-11-at-12.43.01-PM.png %}