-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Safari – pasting text into title doesn't work as expected #51047
Comments
I've noticed this as well; even with selecting all/pasting a whole new title in. |
I got same.
safari-title.mov |
I noticed the same issue. Additional information: The cursor position before the paste does not matter, the result is always the same as described above. My testing environment:
|
It’s not only pasting, also copying doesn’t work as expected.
Expected: the word "test" is pasted. Current behavior: The whole title "This is a test" is pasted. You can also see via clipboard manager that the whole title is inside the clipboard manager instead of just the one word. |
Hi everyone. Sorry, didn't noticed this ticket. If there any updates or fixes? Maybe someone know, how to fix it in Safari, cause using other browser on Mac is not to convenient :( |
Today I dug a little deeper into this behavior, and it appears to affect WP back to 6.1. Not to say it's been an issue since the 6.1 release, but does affect the handling of ⌘+V since reported with Safari 16.4. Reproduction ReportEnvironment
Actual Results
Additional Notes
Supplemental ArtifactsHere are animated GIFs for tested versions: |
When pasting in the Safari post title, I noticed that the RichText value's It can be run via the DevTools console in the editor const value = { ...wp.richText.create( { html: 'Hey' } ), start: undefined, end: undefined };
const newValue = wp.richText.insert( value, wp.richText.create( { html: ' There' } ) );
// { text: 'Hey ThereHey' }
console.log( newValue ); Screenshot |
Here's the fix - #64671. |
Description
When pasting a text into title, the copied text is pasted in combination with a copy of title at the end of title. This happens only in Safari while using CMD+V. Using paste from menubar works fine.
Step-by-step reproduction instructions
Screenshots, screen recording, code snippet
screenrecord.mov
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
Yes
The text was updated successfully, but these errors were encountered: