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

Using the Block Bindings editor API (JS) in WP 6.7 #317

Closed
justintadlock opened this issue Oct 4, 2024 · 8 comments
Closed

Using the Block Bindings editor API (JS) in WP 6.7 #317

justintadlock opened this issue Oct 4, 2024 · 8 comments

Comments

@justintadlock
Copy link

WordPress 6.7 exposes a partial set of JS-based editor functions for working with Block Bindings: WordPress/gutenberg#65713

  • registerBlockBindingsSource: to register a source in the client.
  • unregisterBlockBindingsSource: to unregister an existing source.
  • getBlockBindingsSource: to get a specific registered source and its properties.
  • getBlockBindingsSources: to get all the registered sources in the client.

These are now stable, public functions for theme and plugin authors to extend how Block Bindings work in their projects, especially custom Block Binding sources. I'm proposing a tutorial that walks developers through using these APIs to manipulate bindings in the editor.

There is an additional getFieldsList property that will also be public in the Gutenberg plugin only, which could also be a showcase of what's to come in the future.

@justintadlock
Copy link
Author

The "create ticket from discussion" feature on GitHub seems to broken (at least for me) right now, so I just copied this over from: #316

@WordPress WordPress locked and limited conversation to collaborators Oct 8, 2024
@WordPress WordPress unlocked this conversation Oct 8, 2024
@justintadlock justintadlock self-assigned this Oct 8, 2024
@justintadlock justintadlock moved this from Needs a writer to To-do in Developer Blog Content Board Oct 8, 2024
@justintadlock justintadlock moved this from To-do to In Progress in Developer Blog Content Board Oct 22, 2024
@justintadlock
Copy link
Author

I'm working on this one here: https://docs.google.com/document/d/17o20lmRBxbak8hegX-RmtpKjS2hKlyyc18mbaYR4IWs/edit?usp=sharing

Code examples are up with a rough idea of an outline. Now it's time to fill in all the blank space with words!

@justintadlock justintadlock moved this from In Progress to Needs 1st review in Developer Blog Content Board Oct 24, 2024
@justintadlock
Copy link
Author

@justintadlock justintadlock moved this from Needs 1st review to Needs 2nd review in Developer Blog Content Board Oct 28, 2024
@justintadlock
Copy link
Author

This has received a first review by @cbravobernal, @artemiomorales, and @gziolo. This was primarily a technical review, so the next round should be heavy on copyediting.

@justintadlock justintadlock moved this from Needs 2nd review to Done w/ 2nd review in Developer Blog Content Board Oct 28, 2024
@justintadlock
Copy link
Author

Second review by @ndiego.

@ndiego
Copy link
Member

ndiego commented Oct 28, 2024

Second review by @ndiego.

Yup! Sorry, I forgot to comment here. Great article, as always.

@SantosGuillamot
Copy link

I just left some comments there. I think the article is great 👏

@justintadlock justintadlock moved this from Done w/ 2nd review to Ready to publish in Developer Blog Content Board Oct 29, 2024
@bph
Copy link
Collaborator

bph commented Nov 1, 2024

@bph bph closed this as completed Nov 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Published (Done)
Development

No branches or pull requests

4 participants