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

Set custom preview-options #21235

Closed
Bowriverstudio opened this issue Mar 28, 2020 · 3 comments
Closed

Set custom preview-options #21235

Bowriverstudio opened this issue Mar 28, 2020 · 3 comments
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement.

Comments

@Bowriverstudio
Copy link

Is your feature request related to a problem? Please describe.

I'm sure this is part of a roadmap I use bootstrap which has different breakpoints than wordpress.

Describe the solution you'd like

I like away to modify the gutenberg/packages/edit-post/src/components/preview-options/index.js and add/modify MenuItem.

Instead of Desktop / Tablet / Mobile -> I'd like to use bootstraps

Extra large devices / Large devices / Medium devices / small devices: https://getbootstrap.com/docs/4.4/layout/overview/#responsive-breakpoints

@talldan talldan added [Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement. labels Apr 7, 2020
@talldan
Copy link
Contributor

talldan commented Apr 7, 2020

@Bowriverstudio I think this was discussed on the original pull request - #19082

I looks like an issue was never created, so this can become that issue.

Another use case I remember mentioned for being able to filter those menu options was adding preview options when using WordPress as the backend for a static site (like Gatsby), where the URL for the site would typically be different to the one WordPress expects.

@skorasaurus
Copy link
Member

skorasaurus commented Nov 1, 2021

Might be possible to work more on this with #36119 ?

@annezazu
Copy link
Contributor

annezazu commented Sep 6, 2024

Closing this out as it overlaps with this recently merged PR that introduces the ability to extend this preview panel: #64644 (comment)

This extension point allows for greater flexibility in preview functionality, enabling plugin developers to integrate custom preview options seamlessly into the WordPress editor. It addresses the need for varied publishing flows and tools, such as:

Custom format previews (e.g., AMP, social media shares)
Previewing content with different access restrictions or user roles
Specialized preview modes (e.g., dark mode, email format)

This is expected to land in the WordPress 6.7 release so stay tuned. There's more work to do as well and that's being tracked here: #65005

@annezazu annezazu closed this as completed Sep 6, 2024
@github-project-automation github-project-automation bot moved this from Needs discussion to Done in Increase Gutenberg Extensibility Sep 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Type] Enhancement A suggestion for improvement.
Projects
Development

No branches or pull requests

4 participants