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 }}
Repository navigation
Copy pasting from code blocks on the ducmentation tool frustrating and losing formatting #21034
I tried to copy some text from the vite documentation to use in my own project. This experience is frustrating. Once you manage to select the text, vite also mangles your clipboard entry
Browser: Firefox 144.0 (64-bits) on Arch Linux
Your Suggestion for Changes
If a user starts selecting some text, do not show popups.
If a user has selected some text, do not clear the selecting when a popup shows
If a user starts selecting text, do not extend the text selection to the end of the document
If a user presses CTRL+C, copy the selected text directly to the clipboard, instead of adding random enters to the text
FWIW no1 will also fix no3, because the popup is a fixed element at the end of the html and if selected it'll match to the end of the html. And no2 is fixed with my noAutoFocus suggestion there.
Activity
sapphi-red commentedon Nov 1, 2025
Made an issue upstream: shikijs/shiki#1088
By the way, if you just need to copy the whole code, you can use the copy button instead.
ferrybig commentedon Nov 1, 2025
It looks like the upstream bug report only applies to 1 of the 4 "Your Suggestion for Changes" issues, namely:
it doesn't seem to address the following points:
I did a test in another browser, all 4 of these issues are broken in Firefox, but not in Chromium
bluwy commentedon Nov 1, 2025
FWIW no1 will also fix no3, because the popup is a fixed element at the end of the html and if selected it'll match to the end of the html. And no2 is fixed with my
noAutoFocussuggestion there.bluwy commentedon Nov 3, 2025
shikijs/shiki#948