Skip to content

Copy pasting from code blocks on the ducmentation tool frustrating and losing formatting #21034

@ferrybig

Description

@ferrybig

Documentation is

  • Missing
  • Outdated
  • Confusing
  • Not sure?

Explain in Detail

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

(This has worked flawlessly in the past)

Reproduction

https://vite.dev/guide/backend-integration.html

Steps to reproduce

vite.mp4

Metadata

Metadata

Assignees

No one assigned

    Labels

    bug: upstreamBug in a dependency of VitedocumentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions