[wp-trac] [WordPress Trac] #49615: Editor: Support filtering arguments in block type registration
WordPress Trac
noreply at wordpress.org
Fri Jul 3 07:12:23 UTC 2020
#49615: Editor: Support filtering arguments in block type registration
-------------------------------------------------+-------------------------
Reporter: aduth | Owner: gziolo
Type: enhancement | Status: reopened
Priority: normal | Milestone: 5.5
Component: Editor | Version:
Severity: normal | Resolution:
Keywords: has-patch has-unit-tests needs-dev- | Focuses:
note dev-feedback |
-------------------------------------------------+-------------------------
Changes (by gziolo):
* keywords: has-patch has-unit-tests needs-dev-note => has-patch has-unit-
tests needs-dev-note dev-feedback
* status: closed => reopened
* resolution: fixed =>
Comment:
The newly added patch mirrors the implementation where the client injects
`attributes` based on `supports` flag set:
- `className`
- `align`
- `anchor`
It's based on proposal from @aduth included in
https://github.com/WordPress/gutenberg/pull/18414/files#r449390368. All
credits should go to him :)
There are also other attributes that we can discuss separately.
--
Ticket URL: <https://core.trac.wordpress.org/ticket/49615#comment:8>
WordPress Trac <https://core.trac.wordpress.org/>
WordPress publishing platform
More information about the wp-trac
mailing list