Skip to content
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

Text insertion cursor can show up right-aligned #23882

Closed
mirka opened this issue Jul 10, 2020 · 6 comments
Closed

Text insertion cursor can show up right-aligned #23882

mirka opened this issue Jul 10, 2020 · 6 comments
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended

Comments

@mirka
Copy link
Member

mirka commented Jul 10, 2020

Describe the bug
The text caret can show up on the far right when clicking on an empty prompt.

To reproduce
Steps to reproduce the behavior:

  1. Type two paragraphs.
  2. Erase the first paragraph.
  3. Click on the second paragraph.
  4. Click on the prompt where the first paragraph was.
  5. The caret appears on the right.

Expected behavior
The caret appears on the left.

Screenshots

Text caret appearing on the far right

Editor version (please complete the following information):
Current master 56eb4d7

Desktop (please complete the following information):

  • OS: macOS 10.14.6
  • Browser: Chrome 83.0.4103.116

Additional context

May be related to #18342

@annezazu annezazu added [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended labels Jul 14, 2020
@annezazu
Copy link
Contributor

Thanks for reporting this @mirka ! I agree that this does seem related to the issue you shared but distinct enough for now to remain open. I'll let others decide if not.

@kirilzh kirilzh self-assigned this Jul 21, 2020
@tellthemachines tellthemachines added this to To do in WordPress 5.6.x Must Haves via automation Sep 28, 2020
@kirilzh kirilzh removed their assignment Sep 29, 2020
@talldan
Copy link
Contributor

talldan commented Oct 5, 2020

Just noting that in Firefox (Mac OS) the result is slightly different and the caret isn't visible on the left or right (it's not visible at all):
Screenshot 2020-10-05 at 4 47 11 pm

I can reproduce the same issue as the reporter in Chrome.

@talldan
Copy link
Contributor

talldan commented Nov 4, 2020

I did some debugging (well, more trial and error) on this issue.

In Firefox the missing caret could be related to the way placeholder text is applied in the block appender. Commenting out the content: attr(data-rich-text-placeholder); style makes it visible again:

content: attr(data-rich-text-placeholder);

But it doesn't solve the issue in Chrome.

@tellthemachines
Copy link
Contributor

I can reproduce this issue in Chrome, but not in Firefox or Safari (although I'm also seeing the same issue as @talldan in Firefox), as far back as 5.4.2. I'm removing it from the 5.6 must haves board as it's not a 5.6 regression.

@ellatrix
Copy link
Member

Can anyone still reproduce this? I can't in Chrome.

@mirka
Copy link
Member Author

mirka commented Jul 12, 2024

Me neither, I don't think I've seen this glitch in a while.

@mirka mirka closed this as completed Jul 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
6 participants