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

Cursor positioning lost after pasting a link onto text selection following CTRL + SHIFT selection #11178

Closed
mrwweb opened this issue Oct 28, 2018 · 2 comments · Fixed by #13697
Assignees
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Milestone

Comments

@mrwweb
Copy link

mrwweb commented Oct 28, 2018

Describe the bug
When selecting text, I expect the right arrow key to take me to the end of the selection. After pasting a link on top of a text selection made with CTRL + SHIFT, the right arrow key deselects text and the text cursor is placed at the start of the selection.

To Reproduce
Steps to reproduce the behavior:

  1. Type out anchor text
  2. Use CTRL + SHIFT to select the text (selecting text in either direction triggers the bug)
  3. Paste a link onto the selection that is on the clipboard already
  4. Hit right arrow key
  5. Text is deselected and the cursor is positioned at the beginning of the selection

Expected behavior
Cursor goes to the end of the selection

Screenshots
link-selection-bug

Desktop (please complete the following information):

  • Win 10
  • Firefox 63
  • WP 5.0-beta1-43823, Twenty Nineteen, no plugins
@earnjam earnjam added the [Type] Bug An existing feature does not function as intended label Oct 28, 2018
@jjchrisdiehl
Copy link

Reproduced as described.

Specs:
Web Browser
Chrome 69.0.3497.100

Browser Operating System
Operating System
Microsoft Windows (10) NT 4.0

Browser Screen Size (Dimensions) in pixels
Screen Resolution
2195 x 1235

Browser Size (Dimensions) in pixels
Browser Size
2195 x 1104

Javascript
Enabled

Browser Flash Installed
Flash Version

Browser Cookies Enabled
Cookies

@Soean Soean added the [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable label Oct 28, 2018
@danielbachhuber danielbachhuber added this to the WordPress 5.0 milestone Oct 30, 2018
@earnjam
Copy link
Contributor

earnjam commented Nov 5, 2018

Possibly related to #5317

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Feature] Writing Flow Block selection, navigation, splitting, merging, deletion... [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

Successfully merging a pull request may close this issue.

8 participants