Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add an embedded block editor to the customizer - for widgets #27343

Closed
1 of 2 tasks
draganescu opened this issue Nov 27, 2020 · 3 comments
Closed
1 of 2 tasks

Add an embedded block editor to the customizer - for widgets #27343

draganescu opened this issue Nov 27, 2020 · 3 comments
Assignees
Labels
[Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets.

Comments

@draganescu
Copy link
Contributor

draganescu commented Nov 27, 2020

After the iterations and discussions in #26900 (Managing blocks in the Customizer), the idea exchange in the hallway hangout on the same subject, there resulted a few paths to explore:

Customizer.Block.Editor.for.Sidebars.mp4

These options went unexplored:

@draganescu draganescu added [Feature] Widgets Screen The block-based screen that replaced widgets.php. [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues labels Nov 27, 2020
@celloexpressions
Copy link

For attempting to embed a block's edit view in the preview, transforming customize partials between the preview and the editor could happen at the sidebar (widget area) level. Clicking the edit icon transforms the customize partial to a frontend-embedded editor (within an iframe?). A similar icon, or navigating elsewhere, would transform the partial back to the preview with a selective refresh (using the current API that also triggers all hooks). Communication between the customize controls (top level) and preview (iframe) happens via postMessage.

This is a "modal" approach, but one that is inline and contextual. It keeps ample space for supplementary sidebar controls. Maybe the sidebar also allows quicker actions like reordering widgets without toggling into edit mode.

@noisysocks noisysocks changed the title Blocks in the customizer exploration phase Exploration: Blocks in the Customizer Jan 5, 2021
@noisysocks noisysocks removed the [Type] Overview Comprehensive, high level view of an area of focus often with multiple tracking issues label Jan 5, 2021
@noisysocks noisysocks added [Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets. and removed [Feature] Widgets Screen The block-based screen that replaced widgets.php. labels Jan 5, 2021
@shaunandrews
Copy link
Contributor

Here's how I could see using the block editor to manage Widgets (well, Sidebars, really) within the Customizer:

Customizer.Block.Editor.for.Sidebars.mp4

@draganescu draganescu changed the title Exploration: Blocks in the Customizer Blocks in the Customizer Feb 18, 2021
@draganescu draganescu changed the title Blocks in the Customizer Blocks in the Customizer Design Iteration Feb 18, 2021
@draganescu draganescu changed the title Blocks in the Customizer Design Iteration Add an embedded block editor to the customizer - for widgets Feb 18, 2021
@noisysocks
Copy link
Member

I think we can close this. A lot of this exists in the plugin now and we are already using #24687 as an overview issue for the remaining bits and pieces.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Widgets Customizer Ability to add and edit blocks in Customize → Widgets.
Projects
None yet
Development

No branches or pull requests

5 participants