You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Jul 9, 2026. It is now read-only.
After pasting, cursor should move to the end of the pasted content #828
There are a few things going on in this issue that I'd like to separately identify.
When multi-line plain text is pasted, the pasted text always begins in its own (new) paragraph block, even when the clipboard contents do not begin with a \n (newline).
The caret position after paste is not at the end of the pasted text.
The caret position after paste is not in the correct block (the wrong block is active / focused).
Here are some steps to reproduce:
Copy multi-line text to the clipboard (e.g. "Paragraph 1.\n\nParagraph 2.\n").
Place caret at the end of the "Hello World!" block.
Tap the caret handle and paste the content.
Expected result:
"Paragraph 1." is appended to the text in the "Hello World!" paragraph block to read: "Hello World!Paragraph 1."
A new paragraph block is created below with the text: "Paragraph 2."
The new paragraph block is focused / active
The caret is in the new paragraph block, at the end: "Paragraph 2.|" (where '|' == caret).
Actual result:
Text is not appended to "Hello World!" paragraph block.
Two new paragraph blocks are created with the text "Paragraph 1." and "Paragraph 2.", respectively.
The first of the new paragraph blocks is focused / active (i.e. the "Paragraph 1." block).
The caret is at the beginning of the text: "|Paragraph 1.".
changed the title [-][Android] After pasting, cursor should move to the end of the pasted content[/-][+]After pasting, cursor should move to the end of the pasted content[/+]on Jul 1, 2019
Activity
hypest commentedon Apr 9, 2019
Related PR that may be affecting this issue: #629
mkevins commentedon Apr 9, 2019
Thanks @hypest !
mkevins commentedon Apr 9, 2019
There are a few things going on in this issue that I'd like to separately identify.
\n(newline).Here are some steps to reproduce:
"Paragraph 1.\n\nParagraph 2.\n").Expected result:
Actual result:
Screencast:
mkevins commentedon Apr 10, 2019
A simpler case of this issue exists for pasting inline content as well.
Here are some steps to reproduce:
Expected result:
Actual result:
Screencast:
[-][Android] After pasting, cursor should move to the end of the pasted content[/-][+]After pasting, cursor should move to the end of the pasted content[/+]hypest commentedon Jul 1, 2019
Updated the title to reflect that the issue (caret staying at the start of the pasted text) is not platform specific.
mkevins commentedon Jul 11, 2019
This issue has been resolved, seemingly by a combination of PRs that move selection logic to Gutenberg, and to a "higher level". 🎉