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

Additional elements to the Editors in addition to PostTitle & BlockList #6072

Closed
grappler opened this issue Apr 9, 2018 · 5 comments
Closed
Labels
[Feature] Extensibility The ability to extend blocks or the editing experience [Type] Help Request Help with setup, implementation, or "How do I?" questions.

Comments

@grappler
Copy link
Member

grappler commented Apr 9, 2018

For a site I am working on I need to have subtitles. For this I normally use https://wordpress.org/plugins/subtitles/

I started looking into how to extend Gutenberg so to support an element between <PostTitle /> and <BlockList ... />/<PostTextEditor /> in both VisualEditor and TextEditor but I could not find a solution other then maybe override the two functions which would not be very good for future compatibility.

I don't think adding the field to the sidebar is a very user friendly way of solving the issue.

@gziolo gziolo added [Feature] Extensibility The ability to extend blocks or the editing experience [Type] Question Questions about the design or development of the editor. [Type] Help Request Help with setup, implementation, or "How do I?" questions. and removed [Type] Question Questions about the design or development of the editor. labels Apr 9, 2018
@gziolo
Copy link
Member

gziolo commented Apr 9, 2018

@mtias or @karmatosed - is it something we have planned for the initial scope or rather for the customization phase?

@karmatosed
Copy link
Member

karmatosed commented Apr 9, 2018

I see potentially subhead block as a version one of this. It's actually how I've used it in my own examples. I don't see this anything else for version one.

@grappler
Copy link
Member Author

grappler commented Apr 9, 2018

I see potentially subhead block as a version one of this.

The issue with using the subhead block is that the subtile can't be queried separately if you want to display with the Title on the list of posts.

The temp solution for me will be creating a block which saves the subtitle to the metadata. But that will require the users to add a new block every time they want a subtitle.

@philiparthurmoore
Copy link

The temp solution for me will be creating a block which saves the subtitle to the metadata. But that will require the users to add a new block every time they want a subtitle.

@grappler Subtitles REST API stuff will be shipped next week so I'll dig into this and see if there's anything we can do. Given the number of active installations of the plugin and consistent updates, I'd like to see if there's an elegant way of handling this even if Gutenburg itself isn't flexible right now. Will continue this in wecobble/Subtitles#104 with you.

@karmatosed
Copy link
Member

I am going to close this and put to the future milestone as it's something we may iterate on but not right now. Thanks everyone.

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] Help Request Help with setup, implementation, or "How do I?" questions.
Projects
None yet
Development

No branches or pull requests

4 participants