Closed (fixed)
Project:
Layout Builder +
Version:
2.1.x-dev
Component:
Code
Priority:
Normal
Category:
Feature request
Assigned:
Unassigned
Reporter:
Created:
29 Feb 2024 at 09:26 UTC
Updated:
15 Mar 2024 at 17:49 UTC
Jump to comment: Most recent
Comments
Comment #3
tim bozeman commentedThat's a great call out! Thank you!
Comment #4
hctomYou're welcome - I also like your UI much more than the core UI, hehe!
Comment #6
tim bozeman commentedFantastic! 😊
I took this opportunity to reorganize the files a bit too after including layout-builders behavior to disable interactive elements. Surprisingly I still needed the styling and link drag disabling stuff from #3424439: Disable block links cause it wasn't covered in cores behavior.
¯\_(ツ)_/¯
Thanks again!
Comment #7
hctomI'm sorry, but we missed one important thing: The JS from core's Layout Builder UI to disable those elements was unfortunately not enough. I digged a little more through the code and what the JS actually does is adding a
tabindex="-1"to e.g. iFrame elements. But to get them draggable, there is the following CSS snippet needed as well (otherwise clicks on such elements will be handled by e.g. the iFrame content) - taken fromlayout_builder/css/layout-builder.css:Maybe this even solves your "issue" that you had to add the custom stylings from #3424439: Disable block links additionally.
Should I create a follow up, or should this ticket be reopened again?
Comment #10
tim bozeman commentedOh, that's right! I don't need the custom stylings now. 😅 Thank you very much!
Comment #11
hctomYeah, now oEmbed are also draggable again as well - Thank you so much!