Make WordPress Core

Opened 6 weeks ago

Last modified 6 weeks ago

#51314 new defect (bug)

Pasting into the title field from a spreadsheet cell causes new table block to be created

Reported by: bhkh Owned by:
Milestone: Awaiting Review Priority: normal
Severity: normal Version: 5.5.1
Component: Editor Keywords:
Focuses: Cc:


How to recreate

  1. Add new page
  2. from spreadsheet (external program like libre office) copy the contents of a cell that is to become the page title
  3. Paste (using ctrl-v or ctrl-shift-v) into the page title field on the new page

Expected Result: text of the copied cell would become the title of the page.

Actual Result: Instead of pasting the text of the cell (as it had done prior to 5.5) it skips away from the title title field and instead creates a one cell "table" block on the body of the page. Title field remains empty.

I'm absolutely sure this started with 5.5. My process to create posts always takes the title from a spreadsheet cell.
I have tried with all plugins disabled on TwentyTwenty.
I posted about this issue here and someone else was able to recreate: https://wordpress.org/support/topic/copy-from-spreadsheet-cell-into-page-title-does-not-work/#post-13408178

Change History (3)

#1 @sabernhardt
6 weeks ago

  • Component changed from General to Editor

Hi @bhkh and thanks for the report!

I can confirm that the behavior has changed since 5.4. With WordPress 5.4.2, using Ctrl-V to paste a cell from an Excel spreadsheet into the title block pastes the contents of the cell without formatting into the title. Now it creates the separate table block in 5.5.1.

#2 follow-up: @sabernhardt
6 weeks ago

It seems to be related to this change:

Also, I can use Ctrl-Shift-V to paste as plain text within a paragraph block, but it does not paste at all for me in the title block.

#3 in reply to: ↑ 2 @bhkh
6 weeks ago

Replying to sabernhardt:

It seems to be related to this change:

Oh, that's interesting. That kind of functionality seems like it is just asking for trouble. Why would someone paste a whole document into the title field? Any way, thanks for looking into this!! My first bug report.

Note: See TracTickets for help on using tickets.