Repository navigation
fix(web): type plain text after a bold paste - #251
Merged
Merged
Conversation
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
Pasting
**bold**into the rich-text composer and then typingplainnow leaves only the pasted word bold. The paste handler sets the caret's typing marks from the text that follows it, or clears them at the end of a line. A focused regression test covers both positions.This is the independent LastCode port of upstream PR #13518 at
1653604c45c29f66486254dbb5d2228bc770f75b.UI evidence
Before, the added word stays bold:
After, only the pasted word stays bold:
composer-demo.mp4
The images and recording are from the isolated web client using this patch. The original behavior was also reproduced in the installed LastCode composer with a native paste.
Verification
eb732bcb3a0e0e630b39dd2224ef7b2027bfe57aagainst04af499438b0b0ac6d4a207f22e2857c40a26118Done by GPT-6-Sol in Codex.