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 content replaces the entire block #91148

Open
ha-un opened this issue May 25, 2024 · 9 comments
Open

Classic block: pasting content replaces the entire block #91148

ha-un opened this issue May 25, 2024 · 9 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. [Platform] Atomic [Platform] Simple [Pri] High [Product] WordPress.com All features accessible on and related to WordPress.com. Regression Issues/bugs caused by change in code. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [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

@ha-un
Copy link

ha-un commented May 25, 2024

Quick summary

When using a text expander software or shortcut in the Classic block, the block itself is removed and the text that is inserted using the text expander is added through a Paragraph block.

Steps to reproduce

  1. Add a Classic block
  2. Write a few sentences/words
  3. Insert a line using text expander

What you expected to happen

For the text added through the text expander to be added in line of existing text or block

What actually happened

The entire Classic block (and text already added to the block) is removed. The text inserted using the text expander is added as a Paragraph block.

CleanShot.2024-05-25.at.13.45.15.mp4

This does not happen when adding it without using a Classic block. Works in the same sentence/row as well.

Impact

One

Available workarounds?

Yes, easy to implement

Platform (Simple and/or Atomic)

Simple, Atomic, Self-hosted

Logs or notes

The workaround would be adding text using the Paragraph block and then copying & pasting it to the Classic block. However, this would disrupt the writing flow if a user is already writing inside the Classic block.

Initial report: 8238468-zd-a8c

@ha-un ha-un 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 25, 2024
Copy link

github-actions bot commented May 25, 2024

Support References

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

  • 8238468-zen
  • 8241213-zen
  • 8415063-zen
  • 8560521-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 25, 2024
@liviopv
Copy link

liviopv commented May 28, 2024

📌 REPRODUCTION RESULTS

  • Tested on Simple – Replicated
  • Tested on Atomic – Replicated
  • Replicable outside of Dotcom – Yes

📌 FINDINGS/SCREENSHOTS/VIDEO

CleanShot.2024-05-28.at.12.08.03.mp4

📌 ACTIONS

@liviopv liviopv added [Pri] High [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. Triaged To be used when issues have been triaged. Regression Issues/bugs caused by change in code. and removed Needs triage Ticket needs to be triaged [Pri] Low labels May 28, 2024
@liviopv liviopv changed the title Classic block: Text expanders replace the entire block Classic block: pasting content replaces the entire block May 28, 2024
@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 28, 2024
@vajrasar
Copy link

vajrasar commented Jun 1, 2024

8241213-zd-a8c

I encountered another issue where a user is unable to paste any text into the Classic Block without it automatically converting to the contextual modern blocks, such as the Paragraph Block. I attempted to replicate the problem on my end in various ways but was unsuccessful. However, the user can consistently replicate the issue.

The only difference between my testing and the user's is that I'm using a Mac, while the user is using a Windows machine.

P.S.: The user recently discovered that if they use the contextual menu in the editor to copy and paste, the Classic Block does not convert. However, when using keyboard shortcuts, the issue consistently occurs for them.

Steps they take (and they can see the issue, but I cannot replicate):

  1. Copy text from another location (webpage or Word, etc.)
  2. Create a new page/post
  3. Add the Classic Block
  4. Paste using keyboard shortcut

@liviopv any chance you can check and try to replicate this?

@liviopv
Copy link

liviopv commented Jun 20, 2024

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

@liviopv liviopv closed this as completed Jun 20, 2024
@sajmes
Copy link

sajmes commented Jul 4, 2024

Reopening as this is not resolved. I was able to replicate on user's site from this report: 8415063-zd-a8c.

Specifically using a text expander to add the content to the existing Classic Block.

CleanShot 2024-07-04 at 16 10 12

@sajmes sajmes reopened this Jul 4, 2024
@trixxmanaty
Copy link

same issue here - zd-8520447

@hngdny
Copy link

hngdny commented Aug 4, 2024

Another report 8560521-zd-a8c

@jartes
Copy link
Contributor

jartes commented Aug 21, 2024

I'm still able to reproduce this:

LU8n4L.mov

Noting that this only happens when the Classic Block is inline (no iframe). When the Classic Editor block is loaded with the pop-up, it works correctly.

@jartes
Copy link
Contributor

jartes commented Aug 22, 2024

Opened a new issue in Gutenberg repo: WordPress/gutenberg#64717

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. [Platform] Atomic [Platform] Simple [Pri] High [Product] WordPress.com All features accessible on and related to WordPress.com. Regression Issues/bugs caused by change in code. [Status] Core Fix Needed A fix within the Core WordPress or Gutenberg project is required to resolve this issue. [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

7 participants