Make WordPress Core

Opened 3 months ago

Last modified 3 weeks ago

#61007 new defect (bug)

Shortcode aren't paste inline in paragraphs

Reported by: soivigol's profile soivigol Owned by:
Milestone: Awaiting Review Priority: normal
Severity: major Version: 6.5
Component: Shortcodes Keywords:
Focuses: Cc:

Description (last modified by sabernhardt)

After updating to 6.5 WordPress version, when I go to paste a shortcode from the clipboard to a paragraph or other editable component, the shortcode opens a new block, but doesn't allow paste inline as before.

Here's a GIF
pasting shortcode in Paragraph block

Attachments (1)

shortcodes-inline.gif (209.5 KB) - added by soivigol 3 months ago.

Download all attachments as: .zip

Change History (6)

#1 @sabernhardt
3 months ago

#61006 was marked as a duplicate.

#2 @sabernhardt
3 months ago

  • Description modified (diff)

#3 @soivigol
3 months ago

Additional information: @carloslongarela and I were tested on several installations and in some installations we had this problem, but in others not. We don't have common plugins or themes, where there is the problem. Ones are created with the Block Editor and other ones with Classic themes. Servers, languages and other configurations are different. We don't see any external resource that could cause it.
We tested in WordPress Playground, with different PHP versions, and we had the same error too.

This ticket was mentioned in Slack in #core-editor by soivigol. View the logs.


6 weeks ago

#5 @vreemt
3 weeks ago

having a similar issue, cross-linking https://github.com/WordPress/gutenberg/issues/60564#issuecomment-2205904038

my testing suggests the "source" when copying mattered - if i pasted [bracket] i am generic text [/bracket] from an unformatted source, it got converted, but when pasting from eg a word document or rendered on a page, it displayed as text

[bracket] i am generic text bracket

it also looks like html ([code]Hello <em>world</em>[/code]) can cause it to be converted to a shortcode block

Last edited 3 weeks ago by vreemt (previous) (diff)
Note: See TracTickets for help on using tickets.