-
Notifications
You must be signed in to change notification settings - Fork 3.2k
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
Can't apply bold and italic on the slate example on Android 9 #3036
Comments
Hmm... sounds different. In the other issues, I'm referring specifically to text insertion. Selecting text and then bolding it is not part of that issue. |
@krithika0 - I'm not on the latest, but on previous versions I'd have to collapse my keyboard before my new selection was reflected in Slate's state. This would lead to me having words selected, but the mark being applied to wherever my previously collapsed selection was, making it seem the operation didn't occur. Can you see if that fixes the issue for you? If so, that will be helpful info for getting the final bugs hammered out. |
Thanks for the reply @slapbox. I tried to make the selection, apply the mark, and then collapse the keyboard, but the mark is still not getting applied. |
This appears like it was resolved so closing. |
It wasn't resolved, could you reopen the issue please?
I want to be able to type and apply bold and italic marks as well. |
@krithika0 right now it's a matter of choosing which limited editing experience fits your use best until people have time to contribute more to fixing the things that still don't work. There's substantial work to do and it's not going to be done overnight or all by one person. It's a series of small tasks. That said, @thesunny got us to the current level of mobile support as close to singlehandedly as it gets. I'll be investigating some of the most important issues for my project in a few weeks. If you're interested in trying to take on this small task, I can try to help you find the relevant part of the code to investigate. To debug the issue, you'll want to clone the The hardest part is knowing what files to look at and how to setup the debugging environment; so if you investigate this, you'll have support for the most challenging aspects. Just discovering precisely what's going wrong, even if you can't fix it, would improve the odds of this getting fixed dramatically. |
@krithika0 Augh, no this is my bad, I misread your comment. I thought you had upgraded and the problem fixed but I see that you downgraded to fix the problem. I believe there is a PR that fixes this now from @gracicot #3023 but it hasn't been merged yet. |
Yes this is indeed the case. Slate cannot apply marks on the right words because on Android it doesn't know the position of the cursor all the time yet |
@slapbox I'm using the latest master with the patch applied, and yes the position updates properly when the keyboard is collapsed |
Hmm... It works fine with enabled "desktop site" in Chrome. I have a screen record |
Jesus Christ... Just when you think Google can't make things any crazier or more fragmented. |
Hey, there are lots of open Android-related issues that are out of date with the latest If it cannot be implemented simply in core with Thank you for understanding. |
Do you want to request a feature or report a bug?
Bug
What's the current behavior?
When I select text and try to make it bold or italic, the text remains normal.
What's the expected behavior?
The text I applied bold formatting to should become bold.
The text was updated successfully, but these errors were encountered: