Add inline editing for blocks (ACF 6.7+)#361
Conversation
…ieval method Before we were not able to set blockVersion via config, since the property was filled when settings defaults.
… include autoInlineEditing
|
@dsturm This is maybe outside of the scope of this PR, but how would you implement the new filter |
|
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 Or should we extend the $blockFields
->addText('label')
->inline(); // Or `->addToTopbar()` |
|
I'm open to extending |
|
Hej @Log1x , unfortunately I'm currently short on free time - but I'll be gladly working on this as soon as possible. |
|
@Log1x / @dsturm I propose that this PR to be merged, so it's possible to set how good that "auto" mode is. I'll try to find the time to do a PR for the block header level topbar/inline functionality. Already got simple blade components that allow manual adding of text and toolbar inline editing and it's great. |
|
@aanndryyyy @Log1x Any update on this one? |
With the release of ACF (Pro) 6.7, inline editing is now supported. To enable this feature for blocks, you need to add
“autoInlineEditing“: trueto the block.json file.This PR introduces a new configuration option to enable or disable inline editing.
Furthermore, we couldn’t explicitly set the
blockVersionthrough configuration. This issue has been resolved as well.