-
Notifications
You must be signed in to change notification settings - Fork 4.3k
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
contentOnly
template lock can be lost
#49048
Comments
Hi @stokesman when I click modify I can edit as well, however, following the conversation on locking updates you can opt-out of the locked mode by clicking modify on blocks. Not sure this can be considered as a bug, looping in @jorgefilipecosta to review |
Thank you @Thelmachido. Since I'm not sure I’ve made this clear I hope to clarify.
My expectation is that pressing modify to unlock the block is not part of its savable state. Among the things supporting that expectation is that it does not create entry in the history stack, i.e. it's not an edit. |
I think I understand what @stokesman mean. I find that the Perhaps this issue could be counted as a bug or at least a usability issue. Steps to reproduce
The issue, however, doesn't happen if on step 5 I managed to click "Done" after modifying the said locked block because doing so will preserve the lock. Environment Modify the Modify the |
This seems like a bug, ideally, when pressing save we would revert the block back to content locked before saving. |
Pressing 'Modify' unsets the I think the best thing would be for 'modify' not to change the block attribute, instead it could set a value that isn't persisted (either a |
Description
When editing/modifying a block with
templateLock: contentOnly
it's possible to cause a loss of the attribute by updating while the editing mode is engaged. It’s happened to me at least once.Step-by-step reproduction instructions
contentOnly
Screenshots, screen recording, code snippet
loss-of-contentOnly.mp4
Environment info
Please confirm that you have searched existing issues in the repo.
Yes
Please confirm that you have tested with all plugins deactivated except Gutenberg.
No
The text was updated successfully, but these errors were encountered: