Android-RTEditor icon indicating copy to clipboard operation
Android-RTEditor copied to clipboard

[BUG] numbering append with <ol> when the last item deleted

Open donynuransyah opened this issue 3 years ago • 2 comments

Thank you a ton for your hard work in this library. I just want to report some issue with the numbering format it's got append with <ol> when I tried to delete the last item, but when I delete it again the <ol> tag disappears. but if under the numbering we have some words the bug didn't happen. i thought it had something to do with getAbsoluteIndent or getRelativeIndent here is the video I tried to reproduce.

https://user-images.githubusercontent.com/47665987/153368133-324cc631-11cf-4232-9557-e6127dbf21d0.mp4

https://user-images.githubusercontent.com/47665987/153394343-51a82c2a-169d-4fbf-b873-39a96f71092a.mp4

donynuransyah avatar Feb 10 '22 08:02 donynuransyah

It's problem with your google-keyboard. https://stackoverflow.com/questions/39493066/google-keyboard-mess-up-my-custom-span

MaxCiv avatar May 01 '22 18:05 MaxCiv

This is a known issue but I haven't found a solution yet. It makes sense to delete the last OL because otherwise it would be impossible to go from Ol to regular text (except by clicking the button/icon but that's cumbersome). There are alternative ways like deleting the OL when the user hit the return key (like this Github editor does). The behavior with a regular line of text below (second video) should be consistent though (which it's not).

1gravity avatar Sep 29 '22 14:09 1gravity