Problem/Motivation

Say we have a block that has an image wrapped in a link. The block isn't draggable because browsers have a default behaviour of being able to drag links. Also, the links can interfere with clicking the contextual menu.

Let's just disable links altogether while editing blocks like we do with making it to where the user can't select the text inside the block.

Comments

Tim Bozeman created an issue. See original summary.

tim bozeman’s picture

Status: Reviewed & tested by the community » Fixed
hctom’s picture

I just created a follow-up to this ticket: #3424578: Disable interactive elements in blocks to allow dragging - this is needed because this issue only handles disabling of links in blocks, but there are more interactive elements, which may interfere with dragging behavior. In addition: The custom solution introduced with this ticket should be replaced with core's implementation in layout_builder module to disable interactive elements in blocks in layout builder UI.

tim bozeman’s picture

Oooo that is a great call out! Thank you!

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.