-
Notifications
You must be signed in to change notification settings - Fork 21
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
How to get the value typed in the editor into state? #21
Comments
You want |
I tried it with data but I'm still having the same problems |
Can you please try this? You can compose a controlled wrapper for Trumbowyg component. I normally use it with tl;dr: Codesandbox Example
Then import it as you normally would: File Tree:
|
I have a simple form in my project, with three fields, two regular fields, and one react-trumbowyg field. It seems like I successfully set everything up. I'm not getting any errors in my console. However, I'm not able to get any value typed into the trumbowyg editor into my state.
Here are the relevant bits of code I'm using:
The import statements
The constructor
The onchange event that occurs when a user types into a field
The react-trumbowg component
Using the chrome Redux tools all I see is just empty quotes after submission for the text field. Am I setting up the actual component right?
The text was updated successfully, but these errors were encountered: