react-native-rich-editor
react-native-rich-editor copied to clipboard
Remove composition events that barely work on android
Thoughts on removing this? Composition events cause the following issues on Android:
- Tapping enter at the very beginning (empty html), will end up adding text like "mytextanother text" instead of using divs at the beginning.
- It will also male ul/ol add extra spaces when tapping enter.
Note that tapping a space will "fix" this, but it would mean adding a space before every new line.
i need these changes
I propose to add a trigger that will allow you to disable this from RN component
RichEditor supports html props, which was forgotten to be mentioned in the documentation. I moved the createHtml function to my project and modified it to solve this problem.
CompositionStart and CompositionEND is to deal with character issues such as Chinese, Japanese.
You can throw out the problems you encountered, and I think can it be compatible at the same time
@stulip
Yes, I think you can add props to the config that will allow you to disable this feature depending on the language
@stulip I added my idea to the pull request. You can watch this #314 .