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

Text expander apps replace block content on the Classic Block (inline) #64717

Open
2 tasks done
jartes opened this issue Aug 22, 2024 · 2 comments
Open
2 tasks done

Text expander apps replace block content on the Classic Block (inline) #64717

jartes opened this issue Aug 22, 2024 · 2 comments
Labels
[Block] Classic Affects the Classic Editor Block [Type] Bug An existing feature does not function as intended

Comments

@jartes
Copy link

jartes commented Aug 22, 2024

Description

Quick summary

When using a text expander software or 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.

This is only happening when using the inline Classic Block:

Markup on 2024-08-22 at 15:10:56

This works fine when using the pop-up Classic Block (which is displayed this way when the Custom Fields appearance option is off):

Markup on 2024-08-22 at 15:12:28

What actually happened

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

It could be related to #61377

Step-by-step reproduction instructions

  1. Create a new post or page.
  2. Make sure you don't have the Custom Fields appearance settings
  3. Add a Classic block.
  4. Write a few sentences/words inside the block.
  5. Insert a line using a text expander app, like "Text Expander" or "TypeIt4Me".
  6. Check what happens.

Screenshots, screen recording, code snippet

Screen.Capture.on.2024-08-22.at.15-17-20.mov

Environment info

  • WordPress 6.6.1
  • Gutenberg 19.0.0
  • Twenty Twenty-Four: 1.2
  • Chrome 127 on macOS 14.4.1 Sonoma

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
@jartes jartes added the [Type] Bug An existing feature does not function as intended label Aug 22, 2024
@talldan talldan added Needs Testing Needs further testing to be confirmed. [Block] Classic Affects the Classic Editor Block labels Aug 23, 2024
@miminari
Copy link
Member

miminari commented Aug 28, 2024

I could be reproduced this.
I used TypeIt4Me.

Environment info
WordPress 6.6.1
Gutenberg 19.0.0
Twenty Twenty-Four: 1.2
Safari 17.1.2 and Chromium Engine Version 126.0.6478.127 on macOS 12.5.1

@miminari miminari removed the Needs Testing Needs further testing to be confirmed. label Aug 28, 2024
@t-hamano
Copy link
Contributor

This issue may not fundamentally be a problem with the text expansion app.

There have been reports of issues with non-modal classic blocks where text pasted from outside WordPress gets converted to a paragraph block:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Block] Classic Affects the Classic Editor Block [Type] Bug An existing feature does not function as intended
Projects
None yet
Development

No branches or pull requests

4 participants