Skip to content

fix(web): type plain text after a bold paste - #251

Merged
lastobelus merged 1 commit into
lastcode/mainfrom
port/upstream/composer-bold-paste
Sep 25, 2026
Merged

lastobelus merged 1 commit into
lastcode/mainfrom
port/upstream/composer-bold-paste

Conversation

@lastobelus

Copy link
Copy Markdown
Owner

What changed

Pasting **bold** into the rich-text composer and then typing plain now 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:

Before: bold paste makes following text bold

After, only the pasted word stays bold:

After: following text is plain

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

  • Focused composer tests: 2 passed
  • Web typecheck, targeted lint, formatting, and diff check passed
  • Quick local CI passed for eb732bcb3a0e0e630b39dd2224ef7b2027bfe57a against 04af499438b0b0ac6d4a207f22e2857c40a26118

Done by GPT-6-Sol in Codex.

Loading
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant