Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selecting all text and pasting does not replace text #11061

Closed
swissspidy opened this issue Mar 23, 2022 · 1 comment · Fixed by #11099
Closed

Selecting all text and pasting does not replace text #11061

swissspidy opened this issue Mar 23, 2022 · 1 comment · Fixed by #11099
Assignees
Labels
Elements: Text Group: Copy/Paste Clipboard-related functionality P1 High priority, must do soon Type: Bug Something isn't working

Comments

@swissspidy
Copy link
Collaborator

swissspidy commented Mar 23, 2022

Bug Description

It does not seem to happen consistently, but most of the time when I select all of the text in a text element using Cmd+A and then paste some new text, the existing one is not replaced.

Expected Behaviour

Cmd+A and pasting should replace text

Steps to Reproduce

  1. Insert text from preset
  2. Select all
  3. Paste some text from the clipboard
  4. See that existing text was not replaced, just appended

Screenshots

Towards the end of the video you see it better:

Screen.Recording.2022-03-23.at.22.15.15.mov

Additional Context

  • Plugin Version: 1.19.0-alpha
  • WordPress Version: 5.9
  • Operating System: macOS Monterey
  • Browser: Chrome
@swissspidy swissspidy added the P1 High priority, must do soon label Mar 23, 2022
@swissspidy swissspidy added the Group: Copy/Paste Clipboard-related functionality label Mar 23, 2022
@felipebochehin87 felipebochehin87 self-assigned this Mar 31, 2022
@felipebochehin87
Copy link

Tested against https://stories-qa-wordpress-amp.pantheonsite.io/wp-admin/, using PR #11099.

  1. Added text element to the canvas
  2. Selected all and pasted text from the clipboard
  • selected all clicking on the text
  • selected all using CTRL + A
  • selected all using Command + A
  • selected all clicking and dragging the cursor
  1. Pasted using Command / Control + V

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Elements: Text Group: Copy/Paste Clipboard-related functionality P1 High priority, must do soon Type: Bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants