1.0.1 • Published 4 years ago

slux-sites-draftjs-export-html v1.0.1

Weekly downloads
1
License
ISC
Repository
github
Last release
4 years ago

Slux Sites: Fork of DraftJS Export ContentState to HTML

This is a module for DraftJS that will export your editor content to semantic HTML.

This project is forked from draft-js-export-html and improved for Slux Sites where needed. Follow documentation of draft-js-export-html for more information.

Installation

npm install --save draft-js-export-html

How to Use

import {stateToHTML} from 'draft-js-export-html';
let html = stateToHTML(contentState);

Changes in Fork

  • Atomic elements when empty got a   - this has been removed