draft-wysiwyg icon indicating copy to clipboard operation
draft-wysiwyg copied to clipboard

Not sure how to use

Open ammichael opened this issue 9 years ago • 2 comments

Hello!

First, congrats for this awesome job. It is the best editor I've seen, and it is exactly what I'm looking for (:

I installed, imported and tried to use without success. What are the required props?

Here is my code:

import RichEditor from 'draft-wysiwyg'
import {RichUtils} from 'draft-js';

constructor(props){
    super(props);
    this.state = {
        textoState: '',
    }
 }

  handleChangeTexto = (text) => {
    this.setState({textoState: text});
  }

render(){
  return(
    <RichEditor
              onChange={data=>this.handleChangeTexto(data)}
              value={''}
              cleanupTypes="*"
              sidebar={0}/>
  )
}

What am I missing? =(

ammichael avatar Sep 09 '16 17:09 ammichael

@ammichael Excuse me,do you know how to use it now?i meet the same problem,do you have any solution

ohmyauthentic avatar Nov 18 '16 03:11 ohmyauthentic

@ohmyauthentic I don't.. I gave up trying

ammichael avatar Nov 18 '16 11:11 ammichael