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

How to access value from editor? #142

Open
himanshupadia opened this issue Jun 22, 2020 · 1 comment
Open

How to access value from editor? #142

himanshupadia opened this issue Jun 22, 2020 · 1 comment

Comments

@himanshupadia
Copy link

Thank you for creating this editor.
I have successfully implemented this editor with limited toolbar functions.

I want to know that how to get value (text that we have typed) from editor.
I have new in RN, have tried to get value but didn't get success.
Could any one of you please help to resolve this issue, as I want to sent this text to server and then do further process.

Please please help me, After successful implementation I really don't want to stuck on this point.

any help appreciate.
Thanks in advance.

@RanderGabriel
Copy link

You should use the onValueChanged prop of the CNRichTextEditor to listen for value changes and then store it your component state, just as the sample on the README.md

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