-
Notifications
You must be signed in to change notification settings - Fork 4.2k
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
Reusable block: Add a lock to the parent toolbar to protect the inner content from accidental editing. #32461
Comments
We have a few things happening. A click through approach is being worked on. Located here (linking to a comment I made showing a video on how it works) #31109 (comment) One selects/clicks and it will automatically select the top most container/parent block. Clicking again clicks into the inner contents. Having a lock and a click through approach would be a helpful mix. |
Thanks Paal, I've been coordinating the 5.7.x minors and it would be great if this could be done as a half way step between the larger proposal to be backported in to the wp/5.7 branch. There have been a few issues raised on trac about difficulties people are having in 5.7 so putting in some improvement would be most helpful. |
I am not a programmer but a very frustrated user who has now lost hours trying to use reusable blocks for an obvious task for them where they should have saved me hours. I am sure the following are vital:
To me these seem to be desperately serious faults in the current set up. I hope they will be fixed soon. TIA. |
Unlock Icon is not available in @wordpress/icons package. |
In the example video above, And for the unlocking state, the unlock icon is used. I was looking for similar icons in the icons package but only found the lock icon and not the unlock one. |
EDIT: I moved my reply to @cpsyctc to this issue: I am working on keeping feedback to issues that already has various feedback. |
A PR has been added here: |
Hi all, just left a note in #32710 (comment) but also wanted to highlight a potential improvement available in #31109. In my opinion, the clickthrough approach doesn't resolve all of the known issues with the Reusable block but it's a big improvement over where we are currently! |
I have left a couple of comments directly in the PR. The latest is here: #32710 (comment) |
I really think that editing a reusable content block shouldn't be taken lightly. It should be done on a central place instead of in the context of a post or page that uses that reusable block. A clickthrough isn't enough imo. The lock is a far better idea, but still less protection than the old method of a separate post type to edit outside of the post or page that holds the reusable block. Access to the reusable content blocks to edit was a bit cubersome, but it was well protected outside of the context of a specific post. |
I want to add @pwkip Jules comment from:
It is an intriguing idea. Something to look more into later after the above PR has been merged. |
+1 for this issue. I have a large enterprise client who is experiencing significant issues related to content writers frequently accidentally editing reusable blocks as it is not clearly differentiated from their article content. Our client considers this to be a huge issue, and they feel that reusable blocks are no longer fit for purpose in their current state and not usable for large enterprise businesses. |
I just want to inform everyone on this thread that the first version of locking a Reusable block is in place. This means to protect the site we need to first add the Reusable block into the content and lock it. Then we can let the user loose on the content without risking an accidental change. |
@paaljoachim is this the intended final implementation style for the block lock? Or may it be possible in the future to set all instances to locked? |
Hey Ben
No. This is just one important step.
There are plans to explore how global lock will work. The following is a comment by @jameskoster
|
Description
There has been multiple complaints of accidental changes with the Reusable block in WP 5.7. In earlier versions we had an edit button protecting the inner blocks, but in 5.7 the edit button was removed. Making a one click directly into the Reusable block inner content.
Step-by-step reproduction instructions
Expected behaviour
In WP 5.6. There was an edit icon one had to click to edit the contents. Protecting against accidental changes.
I expected to see also a protective measure in WP 5.7 that protected the content.
Actual behaviour
I happen to make a change and save it.
A possible solution is to add back a kind of edit/lock button.
Here is an example.
Unlock-to-edit-Reusable-block-contents.mp4
WordPress information
Associated issues:
Improvements to Reusable Blocks
#27890
Reusable block: A suggestion for a new revision.
#31163
Try: Obscure edit-ability of post content blocks in the template editor (linking to my comment).
#31461 (comment)
On Locking and TemplateLocking
#29864
The text was updated successfully, but these errors were encountered: