You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Block Editor: Unable to paste text into text field inside block #61377
Some blocks have text fields. For example, Embed block, Shortcode block, etc. Pasting text into the text field of these blocks deletes the blocks and creates a Paragraph block in their place.
I think this can happen with any block that has a text field, not just the core block.
This problem does not seem to occur in WP6.5.
Step-by-step reproduction instructions
Insert Shortcode block, Embed block, etc.
Copy text from elsewhere and paste it into the text field.
It should be converted to a Paragraph block.
Screenshots, screen recording, code snippet
Expected Behaviour (WP6.5)
38ab23ad65493e18ff868e7cc8b8d4b6.mp4
Actual Behaviour (Latest Gutenberg)
9a623c0c7847409376493b9ac2785651.mp4
Environment info
No response
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
@ellatrix reopening because I'm still getting a similar behavior when pasting content into the Classic Block when running 18.4.1 and I'm not sure if that's intentional:
CleanShot.2024-05-28.at.12.08.03.mp4
Steps to reproduce
Add a Classic Block to a page
Paste content into the Classic Block
The Classic Block will transform into other blocks like Paragraph
I tried testing with Playground and the latest Gutenberg, but I couldn't reproduce this problem.
From looking at your video, the Classic block is not opened as a dialog, so I would expect the editor to not be an iframe, which means custom fields are enabled. I tested it in the same environment and it doesn't convert to other blocks 🤔
Activity
t-hamano commentedon May 4, 2024
I'm adding this to the project board because I think this issue has a very large impact and should be fixed in WP6.6.
t-hamano commentedon May 4, 2024
After going back through the commits, it appears that this issue occurred in #54543.
afercia commentedon May 13, 2024
Right. As also reported on #61566 this appears to be a regression.
liviopv commentedon May 24, 2024
The issue is still present on the Shortcode Block as of 18.4:
CleanShot.2024-05-24.at.11.47.46.mp4
ellatrix commentedon May 24, 2024
There's a PR #61389 waiting for approval
liviopv commentedon May 28, 2024
@ellatrix reopening because I'm still getting a similar behavior when pasting content into the Classic Block when running 18.4.1 and I'm not sure if that's intentional:
CleanShot.2024-05-28.at.12.08.03.mp4
Steps to reproduce
t-hamano commentedon May 28, 2024
I tried testing with Playground and the latest Gutenberg, but I couldn't reproduce this problem.
From looking at your video, the Classic block is not opened as a dialog, so I would expect the editor to not be an iframe, which means custom fields are enabled. I tested it in the same environment and it doesn't convert to other blocks 🤔
6786e2164ed12fca03085fa7268613b4.mp4