Skip to content

Image editor as a block-editor component #22581

@ajlende

Description

@ajlende

In #21024 rich-image was implemented with block filters as its own "block" which modifies both the image block and the cover block.

Moving the feature as a block-editor component would allow the toolbar section to go wherever in each block it is applied to and it would allow other block developers to take advantage of the rich image editing in their own blocks.

Doing it the old way had the benefit of being entirely decoupled from the block it is modifying. It was essentially an overlay to the existing block. Unfortunately, this also meant that the editing tools could only be prepended or appended to the existing toolbar. It wasn't possible to put the rich image controls in-between the alignment and replace buttons. Furthermore, it limited the features to only the blocks which it specified.

image

Metadata

Metadata

Assignees

No one assigned

    Labels

    [Block] CoverAffects the Cover Block - used to display content laid over a background image[Block] ImageAffects the Image Block[Feature] MediaAnything that impacts the experience of managing media[Package] Block editor/packages/block-editor[Type] DiscussionFor issues that are high-level and not yet ready to implement.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions