Skip to content

Copied wide-aligned blocks keep the alignment even in themes that don't support it #12333

@webmandesign

Description

@webmandesign

How to recreate

Copy the sample Gutenberg post content from https://wordpress.org/gutenberg/ (by switching to "Code Editor" view). And paste it into a test post on a website using a theme that does not support wide/full alignment of blocks.

Everything works as expected on a website front-end, however, when editing the post user keeps seeing the cover image full aligned. But there are no wide/full alignment buttons when editing the block.

When the block alignment is changed to left/right/center, the block is displayed correctly in admin too, matching the width of the other content elements/blocks.

The issue

This might bring a confusion to a user copying content from one source to another. User might want to recreate the full alignment, but failing doing so, and failing understanding how it actually works.

Expected behavior

When copying wide/full aligned block from a website that supports such alignment into a website that does not, the block should not be wide/full aligned when editing the post.

Screenshots

Copied full aligned image block into a site that does not support such alignment

Additional context

  • Gutenberg v4.5.1

Metadata

Metadata

Labels

Needs DecisionNeeds a decision to be actionable or relevant[Feature] ExtensibilityThe ability to extend blocks or the editing experience

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