Open boythan opened 6 years ago
I can't see any issues with targetSdkVersion 24
.
What is the error you encountered?
@charpeni with targetSdkVersion 24, i can't do anything in RichTextEditor Screen, app get stuck.
i same issue, ios work good but android with targetSdkVersion 25, can't do anything in RichTextEditor Screen
Any update on this? Facing the same issue on targetSdkVersion 27
any update for targetSdkVersion 27?
Oh I see, with targetSdkVersion 27
and probably from 24
, the editor is really slow and we can't select anything because the focus is lost. Looks like it may be related to the scroll event, I'll try to look at this.
If you find anything, feel free to ping me.
The error is located in getCaretYPosition
:
Especially with range.collapse(false)
. I'm still trying to find a clean way to fix this.
did you manage to find any solutions to this?
@charpeni did you have a solution now? tks
@rasselll @jeffie i switched to use android native module lib and then map it to JS code. i used this lib in android native : https://github.com/wasabeef/richeditor-android
targetSdkVersion 27, can't do anything ...
A solution is available here: #115.
"react-native-zss-rich-text-editor": "https://github.com/charpeni/react-native-zss-rich-text-editor.git#fix-selection-focus",
@charpeni It's still not working :(
but thank you : )
@joey3060 have you rebuilt your app on Android? The fix is in editor.html and it needs to be copied by the gradle script. Otherwise, you'll get the old version.
@charpeni it's working , thank you : )
Hi,bro! I have followed the way as you say and in android 7.1.1 version, it , in fact, is fixed and worked normally, but in android 5.0.0, it cannot work that it can work before i have fixed as above. Can it fit just part of android version? Now, the problem is that if i fixed as you did, it can work well in android 7.1.1, but in android 5.0.0 it cannot work. If i don't fixed it followed you, it cannot work in android 7.1.1, but in android 5.0.0, it is normal.
I've the same issue for for android >8.0, the editor is very slow and i can't highlight the text. Does anyone have any fix for this yet?
yeah, there is time lag when make bold,italics,underline and even colors... I have made a fix by forking the repo. https://github.com/mehthabt/react-native-zss-rich-text-editor. just install this repo in your dependency.
work well in IOS and android with targetSdkVersion < 24 but targetSdkVersion >=24. Please give some suggestions