Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 698 Bytes

File metadata and controls

21 lines (15 loc) · 698 Bytes

Example module for creating posts/body content

react-draft-wysiwyg

converting to and from raw JS with Draft.js

This project was bootstrapped with Create React App.

Sample output to back-end + db (after converting contentState object to HTML string)

{
	"_id" : ObjectId("5a5848728c39f27072840d59"),
	"updatedAt" : ISODate("2018-01-12T05:32:34.601Z"),
	"createdAt" : ISODate("2018-01-12T05:32:34.601Z"),
	"subject" : "Hello World",
	"contentData" : "<p>The is a sample email!</p>\n",
	"__v" : 0
}