Big news!Introducing Socket AI - ChatGPT-Powered Threat Analysis.Learn more
Socket
Socket

draft-js-import-html-cbx

Package Overview
Dependencies
1
Maintainers
1
Versions
1
Issues
File Explorer

Advanced tools

draft-js-import-html-cbx

DraftJS: Import HTML to ContentState

    1.4.2latest
    GitHub
    npm

Version published
Maintainers
1
Weekly downloads
1,138
decreased by-26.91%

Weekly downloads

Readme

Source

DraftJS: Import HTML to ContentState

This is a module for DraftJS that will convert HTML to editor content.

It was extracted from React-RTE and placed into a separate module for more general use. Hopefully it can be helpful in your projects.

Installation

npm install draft-js-import-html-cbx

How to Use

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

This project is still under development. If you want to help out, please open an issue to discuss or join us on Slack.

License

This software is BSD Licensed.

Keywords

FAQs

Last updated on 20 Apr 2020

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket
Socket SOC 2 Logo

Product

  • Package Issues
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc