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

Classic Block Pasting Problem #91153

Closed
rickmgithub opened this issue May 27, 2024 · 10 comments
Closed

Classic Block Pasting Problem #91153

rickmgithub opened this issue May 27, 2024 · 10 comments
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Status] Needs Author Reply [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug

Comments

@rickmgithub
Copy link

Quick summary

Paste a YouTube video into a Classic Block with text and it overwrites the content of the entire block (all the text disappears)

Steps to reproduce

  1. Set up a site with the Twenty Sixteen theme on an Explorer (simple) plan.
  2. Create a post
  3. Add a Classic Block
  4. Paste in a couple of paragraphs of generic text
  5. Grab a YouTube URL (any will do)
  6. Use CMD+V to paste in the URL
  7. Notice how the entire contents of the block is removed and replaced with only the video

What you expected to happen

The video to appear within the context currently in the Classic Block

What actually happened

The entire contents is overwritten

Impact

Some (< 50%)

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

No response

Logs or notes

The workaround is to right click on the mouse,

8241783-zd (includes video of issue)

@rickmgithub rickmgithub added [Type] Bug Needs triage Ticket needs to be triaged [Product] WordPress.com All features accessible on and related to WordPress.com. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Feature] Core Blocks Blocks that come with Gutenberg. labels May 27, 2024
Copy link

github-actions bot commented May 27, 2024

Support References

This comment is automatically generated. Please do not edit it.

  • 8241783-zen
  • 8241213-zen
  • 8235649-zen

@github-actions github-actions bot added the Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". label May 27, 2024
@rickmgithub
Copy link
Author

This also seems to be related to the issue 8241213-zd-a8c

@rickmgithub
Copy link
Author

In the second case, you paste in text into a Classic Block and it automatically converts to Paragraph blocks. Feels like these two are connected. The site is again on an Explorer plan and the theme is old, this time Twenty Fourteen,

@github-actions github-actions bot added the [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts label May 27, 2024
@mrfoxtalbot
Copy link

@rickmgithub, I feel this one might be related to #91097 but I cannot quite reproduce what you describe. On my end, things seem to work as expected.

Kapture.2024-05-27.at.11.57.57.mp4

Could you share a screencast to help me understand? Thanks!

@mrfoxtalbot mrfoxtalbot added [Pri] Normal Triaged To be used when issues have been triaged. [Status] Needs Author Reply and removed [Pri] High Needs triage Ticket needs to be triaged labels May 27, 2024
@mrfoxtalbot mrfoxtalbot moved this from Needs Triage to In Triage in Automattic Prioritization: The One Board ™ May 27, 2024
@matticbot matticbot moved this from In Triage to Triaged in Automattic Prioritization: The One Board ™ May 27, 2024
@hngdny
Copy link

hngdny commented May 30, 2024

Seems to be related: 8235649-zd-a8c

During my testing, I noticed a difference between pasting with the mouse right-click and pasting using the keyboard shortcut (around the 0:11 mark on the recording below). Screen capture is from Firefox 126.0.

Pasting with the mouse seems to bring the correct behaviour and pastes text within the Classic Block, following existing text. However, pasting using keyboard shortcuts (CMD-V) seems to override the Classic Block entirely.

qIKSoJ.mp4

@hacchism
Copy link

hacchism commented Jun 1, 2024

Another report at 8235649-zd-a8c

The site is on an Explorer plan and the theme is old, Twenty Sixteen. Suggested the workaround with the Right-Click paste.

User wants a follow-up once the issue has been fixed.

@mrfoxtalbot
Copy link

If this is coming from WordPress/gutenberg#61377 it should be fixed as soon as 18.5 is released (as per WordPress/gutenberg#61389)

@mrfoxtalbot mrfoxtalbot added the [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. label Jun 3, 2024
@masperber
Copy link

This bug can also be produced if you use a TextExpander shortcut in a Classic Block

@masperber
Copy link

Paste a YouTube video into a Classic Block with text and it overwrites the content of the entire block (all the text disappears)

One workaround for this is to right click and use the Mac context menu item "Paste and match style"

@liviopv
Copy link

liviopv commented Jun 20, 2024

Marking as Closed since 18.5 is now running on Simple and Atomic.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Customer Report Issues or PRs that were reported via Happiness. Previously known as "Happiness Request". [Feature] Core Blocks Blocks that come with Gutenberg. [Feature Group] Editor Experience Features related to Gutenberg integration on WordPress.com. [Pri] Normal [Product] WordPress.com All features accessible on and related to WordPress.com. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [Status] Needs Author Reply [Status] Priority Review Triggered Quality squad has been notified of this issue in #dotcom-triage-alerts Triaged To be used when issues have been triaged. [Type] Bug
Development

No branches or pull requests

6 participants