Skip to content

Conversation

@dsturm
Copy link
Contributor

@dsturm dsturm commented Dec 4, 2025

With the release of ACF (Pro) 6.7, inline editing is now supported. To enable this feature for blocks, you need to add “autoInlineEditing“: true to the block.json file.

This PR introduces a new configuration option to enable or disable inline editing.

Furthermore, we couldn’t explicitly set the blockVersion through configuration. This issue has been resolved as well.

…ieval method

Before we were not able to set blockVersion via config, since the property was filled when settings defaults.
@dsturm dsturm changed the title Ft inline editing acf 6 7 Add inline editing for blocks (ACF 6.7+) Dec 4, 2025
@aanndryyyy
Copy link

@dsturm This is maybe outside of the scope of this PR, but how would you implement the new filter acf/blocks/top_toolbar_fields in Block.php? Adding it to the constructor of each block manually?

@dsturm
Copy link
Contributor Author

dsturm commented Dec 5, 2025

Hej @aanndryyyy,

good question! I'm not 100% familiar yet with the inline editing feature and still need to find out, what works best.

But currently my first thought on this, would be adding a new array property like topToolbarFields or inlineFields and add the hook in the register callback for the block.

Or should we extend the Log1x\AcfComposer\Builder\FieldBuilder class (since stoutlogic/acf-builder doesn´t support this) to support something like:

$blockFields
    ->addText('label')
    ->inline(); // Or `->addToTopbar()`

@Log1x
Copy link
Owner

Log1x commented Dec 5, 2025

I'm open to extending FieldBuilder or even a PR to ACF Builder if you think it should be done there. I haven't had time to mess with inline editing yet, really appreciate the push here. 🙌

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants