-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Plugins: Let's discuss pluggable areas (w. updated blueprints) #1352
Comments
Here is a list of things that I desire to be pluggable as a bare minimum. Blocks
Post Settings (Sidebar)
Block Inspector (Sidebar)
Extended Settings
|
To get an idea of extensibility of the current edit screen, I went thru the code in Of particular interest to me are the actions that fire in various spots on the screen, allowing developers to add their own custom elements, for example, to add a new text field for a 'sub-title' below the main title input field. Or the hook that fires just below the editor, allowing developers to add a status area or similar non-meta-box area. Filters on the post edit screen
Actions fired on the post edit screen
|
@adamsilverstein see also #1316 (Hooks and filters support and documentation) |
The current WP screen allows metaboxes that are almost equal to the main editor, regarding their visual importance and UX. This is essential for example for translation plugins: You need a metabox with an editor that holds the translated content plus title and a taxonomy selector. It must not be hidden somewhere deep down where users won't find it. So we need a way to get the same, or even something better (language tabs?). (And please, please stop calling existing state of the art code legacy. Thanks.) |
Translation plugins is a great example! You have to have language 1 and language 2 side by side for quick work. Would you imagine this being 2 blocks above and below each other in the Gutenberg editor, or would it be in the area below the editor for metaboxes? |
In the current UI, most users (of the plugin MultilingualPress, can't say much about other plugins) turn off the full height option for the main editor, so they can see the editors for two or three languages at once. This is also how I work. As far as I can tell from the mockups and screenshots, this isn't possible right now? Two blocks inside the editor … interesting idea. :) If there is a clear label on each block for the language, that might work. Even synchronized scrolling might be possible, something I miss very much in the existing solutions. This will not scale for sites with more than three languages tough. |
|
That's completely different from case to case. |
Good ideas. :) Not sure a side by side view will work or is even needed. |
I added a new function to register a new block category. |
I apologize if I missed something as this one is quite the wall of text, but here are some ideas related to legacy meta boxes.
I think that 1-3 would sufficiently cover the issue and people could relax that they would have time to move the functionality to blocks / their required functionality would not be lost. FWIW, I shuddered when I read "iframe" for this. |
I've got fundamental problems with "relegating" these metaboxes to a collapsible section at the bottom of the editor. For structured post types like events or sponsors or artists or movies or books or reviews or any other of a dozen examples I could name the information in the custom fields in those metaboxes is often more important to the display on the site then the "content" in the editor. Hiding them away in a collapsible region at the bottom like an after thought is a huge step backwards in usability compared to what we have currently. For a screenshot to illustrate how we use the metaboxes around the content see the link to another comment below. @dmccan I think that anything less than option 3 you listed above is a disaster for this project in the long term. |
I would like to have hooks to extend Editor Bar as well. For example I would like to my own Action Button with dropdown similar to the blocks list. I have idea to add predesigned sections/parts of the page and there is no way to do something like this at the moment. |
Closing in favor of #3330. |
* Enable batch editing on font change * Remove unnecessary `removeAttribute` call
…rg-mobile into add/autosave-monitor * 'develop' of https://github.com/wordpress-mobile/gutenberg-mobile: [iOS]Fix: Oddly formatted text hangs Gutenberg (#1352) Remove redundant bg color within button appender (#1348) Update bundles Update package.json version to 1.12.0 # Conflicts: # bundle/android/App.js # bundle/android/App.js.map # bundle/ios/App.js # bundle/ios/App.js.map
Here are updated blueprints. These blueprints, once this discussion is settled, will probably go in Storybook (http://gutenberg-devdoc.surge.sh).
Basic configuration:
Editor Bar
Main editing canvas
Post Settings
Block is selected:
Extended Settings (see also #952):
Pluggable areas
Let's discuss which of these areas should be pluggable.
The first ones that come to mind are the sidebar and the extended settings. Both should be pluggable so you can write your own JS metaboxes and decide whether they show in one or the other.
Another one is the publish dropdown, which would be a good place for plugins to provide a "before publish last minute check or summary". This interface is also good for users that dismiss the post settings because they never use it.
What should be pluggable?
The text was updated successfully, but these errors were encountered: