react-native-rich-editor icon indicating copy to clipboard operation
react-native-rich-editor copied to clipboard

How do I get entered text.

Open itsatishay opened this issue 1 year ago • 1 comments

I wanted to just get the entered text input length. I don't see any function which I can call to extract that

itsatishay avatar Jul 24 '23 04:07 itsatishay

we can get length of the entered text from the variable where we storing the text by using .length method, but if you want to get length without html tags, i used replace method to remove the tags while checking length eg: message.replace(/<[^>]*>/g, '').trim().length

Bilin-David avatar Jul 24 '23 09:07 Bilin-David