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

Advanced settings in blocks #3002

Closed
ahartvanyi opened this issue Oct 12, 2017 · 7 comments
Closed

Advanced settings in blocks #3002

ahartvanyi opened this issue Oct 12, 2017 · 7 comments
Labels
[Type] Question Questions about the design or development of the editor.

Comments

@ahartvanyi
Copy link

Hi,

I'd like to ask if is it possible to add Additional CSS Class input field under Advanced block settings, to specified block elements like Paragraph or List?
Also can I register a new, custom advanced block setting for specified blocks?

If so, could you please share a solution?

Many thanks,

@youknowriad youknowriad added the [Type] Question Questions about the design or development of the editor. label Oct 12, 2017
@youknowriad
Copy link
Contributor

Hi! Unfortunately, this is not possible right now. (Because support for the custom className is also used to declare support for the generated className cc @aduth ). But this is something we'll look at.

@lkraav
Copy link

lkraav commented Oct 12, 2017

@ahartvanyi your question is partly unclear, with multiple questions chained into sentences. Use numbered lists so people can answer each item with clarity. It's not possible to tell right now whether @youknowriad replied to both parts or not.

My version of the question is: is it possible to filter and/or augment core blocks with additional properties and alter their final rendering output?

Forking each core block into a custom plugin with some added customizations has significant maintenance overhead. I would rather have my plugin let the core block do its work while I only take care of my customizations and/or overrides, similar to add_filter() API.

@youknowriad
Copy link
Contributor

yep sorry my answer was not clear enough, I was answering this

I'd like to ask if is it possible to add Additional CSS Class input field under Advanced block settings, to specified block elements like Paragraph or List?

Other blocks do have a support for an additional CSS class while the paragraph/list don't.

Also can I register a new, custom advanced block setting for specified blocks?

This is tracked here #2474

@lumberman
Copy link

lumberman commented Oct 13, 2017

Unfortunately no progress on any extendability. It's very confusing as WP developers have high hopes for Gutenberg, but there is no door for us to get in.

Gutenberg looks like Apple AppStore with a strict set of rules and limitations. As a developer, you can play in your tiny "sandbox" and don't even think to adjust/modify any standard features.

I know guys are very busy building most important features now, but extendability (filters/hooks) is one of the main features of WordPress. Otherwise, all the people would use WordPress.com or Calypso.

@klihelp
Copy link

klihelp commented Oct 27, 2017

yes for filters to the blocks... eg gallery could go into [gallery] shortcode, no?

@mtias
Copy link
Member

mtias commented Nov 6, 2017

@lumberman an overview of all the planned extensibility points are in: #3330

We also welcome contributors to get started on these, specially if they have use cases they want accomplished.

@mtias
Copy link
Member

mtias commented Nov 20, 2017

Closing as #3318 and #3493

@mtias mtias closed this as completed Nov 20, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Type] Question Questions about the design or development of the editor.
Projects
None yet
Development

No branches or pull requests

6 participants