-
Notifications
You must be signed in to change notification settings - Fork 58
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
Strikethrough format button not highlighted. #729
Comments
What is the exact html underneath that rich text content @etoledom ? Alternatively, can you add steps to reproduce? I think that the format-lib doesn't support both |
This is the HTML generated: <!-- wp:paragraph -->
<p>Hello <strike>world</strike> <strong>bold</strong></p>
<!-- /wp:paragraph --> Steps:
It happens for any Tested on WPAndroid beta (12.0-rc-1) and it does work well. It would be good if someone can reproduce this on WPiOS. |
Experiencing this on Pixel 3a - Android 9. I left a comment on #757 (comment) with gifs showing the weird behavior I was seeing. |
So, It happens that Gutenberg uses and recognizes I'm not sure that not recognizing #757 (comment) seems to be a different one. |
Closing this since it works as expected with |
I was able to reproduce this on 14.5, the tag used was |
I have noticed that if I start with Strikethrough on a clean text, it will work using I can add a video if it's not clear. All this on Android. iOS is working fine. |
I just noticed something similar (again only on Android). The distinction I'm seeing is that if I highlight text and apply strikethrough I get the Seems like we should reopen this issue. |
I think the main issue here is that Gutenberg web and the format library don't recognize the |
Just noticed on Android that if I select str?u?ckthrough text that has the |
After some tests on both platforms here's what I came across. iOSIn terms of strikethrough, as far as I can tell, iOS is working fine (as @etoledom commented here). Tested on WPiOS 15.2. When I moved the cursor over text that had strikethough formatting, it always reflected the correct state. Also working when I selected a chunk of formatted text. AndroidMostly confirms what was reported in above comments. Tested on WPAndroid 15.2 using both Gboard and Samsung keyboard.
Both Android and iOSThere's a (less important) inconsistency between how the mobile editor and the web editor behave. It's not specific to strikethrough, it's the same for bold or italics. Backspace partway into text that has strikethrough formatting, then stop and type new characters: on Gutenberg web the new chars don't pick up the formatting but on Android or iOS they do (it doesn't matter if the strikethrough uses Next stepsIn addition to the above tests, I did a quick test combining strikethrough with bold and italics and found no additional issues on either platform. I didn't test links. I'd say this is an Android-only ticket so I'll add the appropriate label. Next step is to find out why So the next step now is to know why Android Aztec uses |
I believe that the Android steps detailed in comments above are all fixed with the simple AztecAndroid fix of defaulting to One question that we might consider is whether we should add handling to GB-Mobile for posts that already contain the For example, on a Gutenberg Web Post, the follow steps show a similar issue:
While I think the |
This issue is fixed with the change here: wordpress-mobile/AztecEditor-Android#919 which has been merged to Gutenberg Mobile. I created a separate issue on Gutenberg for the issue that some tags manually added in the HTML editor update the style in the post in a way that cannot be manipulated by the expected toolbar buttons: WordPress/gutenberg#25389 .That seems like a separate, likely less urgent issue than our strikethrough button on mobile using the wrong tag, which is covered in this issue, and can now be closed. |
Highlighting attribute buttons on caret positions works for B, I and link but not for
ABC.It does work when typing with
strikethoughformat.Tested on iOS. Not sure if is multiplatform issue.
The text was updated successfully, but these errors were encountered: