Skip to content

Example module for creating posts/body content

Notifications You must be signed in to change notification settings

CosmoRocket/react-drafter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 
 
 

Repository files navigation

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
}

About

Example module for creating posts/body content

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published