Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Not sure how to use #15

Open
ammichael opened this issue Sep 9, 2016 · 2 comments
Open

Not sure how to use #15

ammichael opened this issue Sep 9, 2016 · 2 comments

Comments

@ammichael
Copy link

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
Copy link

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

@ammichael
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants