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

Pasting text into empty paragraph sets cursor to start of text #11974

Closed
johngodley opened this issue Nov 16, 2018 · 2 comments
Closed

Pasting text into empty paragraph sets cursor to start of text #11974

johngodley opened this issue Nov 16, 2018 · 2 comments
Labels
[Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable [Type] Bug An existing feature does not function as intended

Comments

@johngodley
Copy link
Contributor

If you paste text into an empty paragraph the cursor is set to the start of the text.

Before, with cursor at start:
edit_post_ _wordpress_latest_ _wordpress

After pasting, with cursor still at start
edit_post_ _wordpress_latest_ _wordpress

The cursor is placed correctly when pasting elsewhere, such as at the end of existing text:

edit_post_ _wordpress_latest_ _wordpress

To Reproduce
Steps to reproduce the behavior:

  1. Create a paragraph
  2. Copy and paste some text into the empty paragraph
  3. Note the cursor is at the start not the end

Expected behavior
Cursor to be after the text

Chrome, MacOS

@johngodley johngodley added [Type] Bug An existing feature does not function as intended [Feature] Rich Text Related to the Rich Text component that allows developers to render a contenteditable labels Nov 16, 2018
@mrwweb
Copy link

mrwweb commented Nov 16, 2018

I think this is a duplicate of #5317. Can you confirm, @johngodley?

@johngodley
Copy link
Contributor Author

Yes, that's it - I looked back through, but not far enough. Closing this issue, thanks!

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 [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

2 participants