-
Notifications
You must be signed in to change notification settings - Fork 3.4k
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
Mobile Device Text Formatting (Adding Bold / Italics / Changing Fonts...) #1450
Comments
Has anyone else run into this? @jhchen do you have any ideas or further tests that I could run? |
I can confirm this behaviour. |
Does this occur on Quill's website quilljs.com, particularly the standalone editors for example https://quilljs.com/standalone/snow? I'm not able to reproduce on a Safari 10 on iPad. |
My steps for reproducing:
I noticed that after "selecting" a word with the Apple autocorrect function just by tapping it, formatting would always work. When selecting a word with the "select" functionality, also when expanding the selection, there's a high chance that formatting won't work. After trying to format, Safari resets the caret to some point that appears to be the center of my previous selection. Description for the screenshots:
|
I've experienced formatting issues as well. I'm on iOS 10 with an external keyboard. This is my repro:
Here are some screen shots: Hit "I" and it changes selection to "This" and makes it italic: |
Any news on this? |
I've never been able to repro on my iPad but can you guys try on the latest version of Quill 1.3.0? Some selection code was changed that fixed some other mobile bugs. |
FYI - I tested my repro case using https://quilljs.com/standalone/snow (which now uses Quill 1.3.0) and could not reproduce the problem. I'll have to get this version into our application and test there as well. |
@jbhorsewriter7 I started another project https://github.com/hivecms/quillview. QuillView is to display quill format on iOS native views. Your comments are welcome. |
Closing inactive issue. |
Has anyone tried using this with a mobile device (I have this issue in iOS and on Android).
Whenever I try and format the text in my box - it seems to work the first time (if my selection includes the first word) but from then on NONE of my formatting changes are listened to.
Steps for Reproduction
Launch a quill editor on a mobile device (Android seems to be worse than iOS but either are adequate)
Type a sentence.
Select the first word in the sentence and choose to make it BOLD.
Select the same word that you just made bold and now make it ITALIC as well.
The word remains bold. Try any other formatting changes... the word doesn't change.
Expected behavior:
I would like the fonts and formatting to be updated.
Actual behavior:
The formatting seems to not "hear" what I have specified. I have alerted the value of the "get selection" function and noticed that the first time (when it worked) it returns values 0 (meaning it's the beginning of my string) and 5 (meaning it was a five-letter word).
From then on it returns 11 (?) and 0 (meaning that nothing is selected in my string)... which is strange.
Platforms:
iOS safari. Android Chrome... etc.
Version: NEWEST
Run
Quill.version
to find outThe text was updated successfully, but these errors were encountered: