-
Notifications
You must be signed in to change notification settings - Fork 114
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Issue/464 missing suggestions #466
Conversation
There is another, a bit more serious side effect of #237 - when you delete the last character of styled text the span is removed from it. Open the app with demo content, put cursor behind "Italic" and press backspace on the software keyboard. I researched this problem a long time ago, and it is indeed caused by autocorrect/suggestion (the suggested text becomes Underlined and all the other spans are removed from it). That's why we reapplying the spans here. But apparently it did not work :) I'll take a look at #237 - maybe it will be a quick fix. |
Another issue - type some letters, toggle inline style, type some more letters, press space. Notice the inline style disappeared. |
Hmm, that's pretty serious. Thanks for pointing that out, Klym. |
…icking to words affected by autocorrect.
@khaykov I can't reproduce issues you described. Is this specific to a certain android version or device? I tested on this branch, I used Android 5.0 and 7.0. |
@maxme Yes, those issues are from pre 5.0.0 devices. From the top of my head here is a couple of issues you can reproduce on 5.0.0+ devices (tested on Pixel_API_25 emulator): Load empty editor, type "h" toggle bold, type "ello" notice that after you finish typing only the last letter will have a bold style applied to it. Toggle bold, and type some incorrect word, like "herro", press space so it will be autocorrected to "hero", press backspace to cancel autocorrect and notice that the bold style is also gone. Also, autocorrect only works with soft keyboard, so make sure to use it. |
Found another issue that I can only reproduce on API 26 so far: :( |
…mobile/WordPress-Aztec-Android into issue/fixing-spellcheck-removing-styling # Conflicts: # aztec/src/main/kotlin/org/wordpress/aztec/AztecText.kt # aztec/src/main/kotlin/org/wordpress/aztec/formatting/InlineFormatter.kt
…-Android into issue/464-missing-suggestions
…mobile/WordPress-Aztec-Android into issue/fixing-spellcheck-removing-styling # Conflicts: # build.gradle
…-removing-styling Issue/fixing spellcheck removing styling
|
Just for the record: this comment #466 (comment) in this PR doesn't block the review/merge. |
@0nko I confirm I can reproduce this issue here #466 (comment) We can merge this one once the conflicts are resolved, going to open new issues with whatever is found (that comment for example, plus the all-content-in-one-line issue from 4.2.2 ) |
Fixes #464. This brings back #237.