Skip to content

florentferry/draftHTMLRenderer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

How to use

In your component which use DraftJS.

import { draftHTMLRenderer } from '../draftHTMLRenderer';

export default class MyEditor extends React.component {

  onSave(editorState) {
    const parsedHTML = draftHTMLRenderer(editorState);
    // Store your parsedHTML
  }
}

Releases

No releases published

Packages

No packages published