Skip to content

Add support for transforming Word Online headings to corresponding Gutenberg heading blocks on paste #70770

@mecskyverse

Description

@mecskyverse

What problem does this address?

When copying content from Microsoft Word Online into the Gutenberg editor, all heading levels (e.g., Heading 1 to Heading 4) are flattened and pasted as <p> tags, losing the semantic structure of the document. This leads to extra manual work for users to reapply heading blocks after pasting.

Screen.Recording.2025-07-18.at.1.09.40.PM.mov

What is your proposed solution?

Introduce a content transformer in the paste handler that detects and maps Microsoft Word Online's heading tags (e.g., <h1>, <h2>, etc.) to the corresponding Gutenberg Heading blocks. This would preserve the document’s semantic structure on paste and streamline user workflows, especially when migrating or drafting content from Word Online.

Metadata

Metadata

Assignees

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions