Skip to content

Add media insertion commands to the Editor Command Palette #65542

@zackkrida

Description

@zackkrida

What problem does this address?

Adding media from one's media library is a rote and common action in the block editor. Currently to do so from the inserter panel it takes 4 clicks:

  • One to open the panel
  • One to select the "media" tab
  • One to choose the media source ("library", "openverse", and so on)
  • One to insert the media

This is a somewhat tedious flow with low discoverability.

What is your proposed solution?

This feels like an appropriate use of the Editor Command Palette, which could contain a unique command for each media source:

  • Insert image from media library
  • Insert image from Openverse
  • Insert image from Pexels

The language "Insert" is probably not ideal, because these actions would merely be opening the appropriate media tab in the inserter panel. I'm not a copywriter, though 😊

As a prerequisite, there is not yet a command to "Toggle block inserter". It might make sense for that command to exist before what are essentially "sub commands" within the inserter exist.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions