bkniffler / draft-wysiwyg

Draft-JS experiments with drag&drop, resizing, tooltips, WIP
https://draft-wysiwyg.herokuapp.com/
MIT License
451 stars 62 forks source link

Not sure how to use #15

Open ammichael opened 8 years ago

ammichael commented 8 years ago

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? =(

ohmyauthentic commented 7 years ago

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

ammichael commented 7 years ago

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