wordpress-mobile / AztecEditor-Android

A reusable native Android rich text editor component.
Mozilla Public License 2.0
675 stars 112 forks source link

Predictive text (grammarly) on Samsung devices with Android 13 replaces the images with OBJ #1023

Closed khaykov closed 1 year ago

khaykov commented 1 year ago

As you can see from the video, the moment predictive text (grammarly) kicks in, by suggesting comma in "Hello my" the image is replaced with OBJ.

https://user-images.githubusercontent.com/728822/211372645-84231319-8c2b-43c4-bd79-24abe46393d2.mp4

This happens because when adding SuggestionSpan Samsung strips or messes up in other ways existing spans in edit text.

Disable predictive text in keyboard or in Aztec fixes the issue. This is not ideal, obviously.

Reproduced

  1. Add an image to editor.
  2. Type something that will activate the Grammarly (in my case it's "Hello my name i"
  3. Notice image being replaced with OBJ.

Tested

Samsung Galaxy S22 Ultra with Android 13