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
🐛(Bug) Ctrl+A does not select the document content on Chrome #3000
In order to copy, delete or restyle a whole document, users press Ctrl+A in the editor. On Chrome, Ctrl+A does not show any selection: the page scrolls to the end of the document and the caret lands at the end of the last text block, as if Ctrl+End had been pressed. Users can't select the whole content with the keyboard and have to drag the mouse across the whole document instead.
Seen on docs.numerique.gouv.fr (Chrome on Linux, signed out, editing a shared document that ends with a heading followed by an embedded video). See the attached video.
Acceptance criteria
Given a user has the caret in a block of a document on Chrome
When they press Ctrl+A (Cmd+A on macOS)
Then the whole document content is selected and shown as selected
And the scroll position does not jump
Given the whole document is selected with Ctrl+A
When the user presses Ctrl+C, then pastes in another document
Then all the blocks are pasted
Given the document ends with a non-text block (image, video, embed)
When the user presses Ctrl+A
Then that block is part of the selection too
Given the user presses Ctrl+A on Firefox or Safari
Then the behaviour is the same as on Chrome
Implementation
TBD. The app does not catch Ctrl+A itself (no handler in features/docs/doc-editor), so ProseMirror's selectAll from BlockNote 0.57.0 handles it. Next step: check whether the selection is missing or only not drawn (a CSS issue), and whether it depends on the last block being a video.
@MayurK-cmd I see @rupanjana15 already got it.
Weirdly enough I could not reproduce it on our production instance this morning using chromium.
Yesterday I couldn't select with ctrl + A when on Chrome. Today I can...
I've asked the user who reported this to me to confirm.
Here is a test document https://docs.numerique.gouv.fr/docs/13c75011-568e-4848-986a-b18e23d0ab54/
I see that @rupanjana15 caught a different bug when the selection start with a media or ends with a media (current document setup), the medias are not selected and are not copied.
Thanks @virgile-dev! Yes, #3002 fixes the media part: BlockNote selects the whole document with a text selection, so a media block at the start or end of the document is left out of the selection and isn't copied. I couldn't reproduce the "no selection at all" part outside Docs either.
Since the original report may not reproduce anymore, should I change the PR to "Related to #3000" instead of "Closes #3000", or open a separate issue for the media bug? Happy to go either way.
Activity
MayurK-cmd commentedon Nov 12, 2026
hey can i work on this one?
virgile-dev commentedon Nov 13, 2026
@MayurK-cmd I see @rupanjana15 already got it.
Weirdly enough I could not reproduce it on our production instance this morning using chromium.
Yesterday I couldn't select with ctrl + A when on Chrome. Today I can...
I've asked the user who reported this to me to confirm.
Here is a test document https://docs.numerique.gouv.fr/docs/13c75011-568e-4848-986a-b18e23d0ab54/
I see that @rupanjana15 caught a different bug when the selection start with a media or ends with a media (current document setup), the medias are not selected and are not copied.
MayurK-cmd commentedon Nov 13, 2026
I will just wait then
rupanjana15 commentedon Nov 13, 2026
Thanks @virgile-dev! Yes, #3002 fixes the media part: BlockNote selects the whole document with a text selection, so a media block at the start or end of the document is left out of the selection and isn't copied. I couldn't reproduce the "no selection at all" part outside Docs either.
Since the original report may not reproduce anymore, should I change the PR to "Related to #3000" instead of "Closes #3000", or open a separate issue for the media bug? Happy to go either way.
virgile-dev commentedon Nov 13, 2026
Related is fine thanks @rupanjana15