-
Notifications
You must be signed in to change notification settings - Fork 4.5k
Pullquote: Try adding Block Bindings support #70975
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
base: trunk
Are you sure you want to change the base?
Conversation
const hasBoundCitation = !! metadata?.bindings?.citation; | ||
const shouldShowCitation = | ||
hasBoundCitation || ! RichText.isEmpty( citation ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@cbravobernal, circling back to our chat earlier this week, this check allows us not to render the cite
tag when the binding is not set, making the save
function fully backward compatible.
$block_type->uses_context = array_merge( $block_type->uses_context, $value_binding_source->uses_context ); | ||
$block_instance->refresh_context_dependents(); | ||
$value = $value_binding_source->get_value( $value_args, $block_instance, 'value' ); | ||
$block_reader->set_attribute( 'data-value', $value ); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The final solution should use set_inner_html
once it is implemented.
Size Change: +96 B (+0.01%) Total Size: 1.91 MB
ℹ️ View Unchanged
|
What?
Closes
Part of #67520.
Still work in progress.
Why?
How?
Testing Instructions
Testing Instructions for Keyboard
Screenshots or screencast