How to use react-draft-wysiwyg - 1 common examples

To help you get started, we’ve selected a few react-draft-wysiwyg examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github pennlabs / clubs / components / Form.js View on Github external
constructor(props) {
    super(props)

    this.state = {
      mounted: false,
    }

    this.files = {}

    if (process.browser) {
      htmlToDraft = require('html-to-draftjs').default
      Editor = require('react-draft-wysiwyg').Editor

      this.setDefaults(this.props.fields)
    }

    this.generateField = this.generateField.bind(this)
    this.generateFields = this.generateFields.bind(this)
  }

react-draft-wysiwyg

A wysiwyg on top of DraftJS.

MIT
Latest version published 2 years ago

Package Health Score

61 / 100
Full package analysis

Popular react-draft-wysiwyg functions

Similar packages