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

Remove composition events that barely work on android

Open cristianoccazinsp opened this issue 3 years ago • 6 comments
trafficstars

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 "mytext
    another 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.

cristianoccazinsp avatar Apr 29 '22 16:04 cristianoccazinsp

i need these changes

Kirysha avatar Dec 14 '22 16:12 Kirysha

I propose to add a trigger that will allow you to disable this from RN component

Kirysha avatar Dec 14 '22 16:12 Kirysha

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.

Kirysha avatar Dec 16 '22 11:12 Kirysha

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 avatar Apr 03 '23 09:04 stulip

@stulip

Yes, I think you can add props to the config that will allow you to disable this feature depending on the language

Kirysha avatar May 18 '23 13:05 Kirysha

@stulip I added my idea to the pull request. You can watch this #314 .

Kirysha avatar May 18 '23 14:05 Kirysha