One of my single layouts does not load in the builder after the update. It is stuck on the loading spinner (the three vertical bars) forever. I have now narrowed it down to a Raw Content element that is part of my layout. As soon as I delete the code inside of the raw content element, it does work. This is what is in the raw element:
<div class="video-container"> <iframe src="https://www.youtube-nocookie.com/embed/{{dc:post:meta key="jc_video-recording"}}?loop=1&controls=1&rel=0" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe> </div>
It worked in Pro v5, it does not work in Pro v6.
When I freshly insert the code, it does work, it shows the correct preview. I can save it, and on the front end, it shows the correct video on each of the posts where this layout is assigned. On the backend, however, I cannot load the preview anymore when the code is in there, and I cannot switch between different posts in the preview (switching will try and load the preview “from scratch”, and loading doesn’t work). The builder does load the side pane with the outline, the inspector, etc, so I can go in there and delete the code, save the layout, select a preview. Then the Preview shows again. With this I was able to test various scenarios, but none of them helped:
- changing the double-quotes within the
{{dc...}}
field to single quotes (same non-loading behavior as with double quotes) - taking out the
{{dc...}}
field completely and replacing it with the value of one of the posts (same non-loading behavior as with{{dc...}}
field, but of course each post on the front end will now show the same hardcoded video) - removing the
<div>
around the<iframe>
- Instead of using the Raw Content element, I tried the Video element, pasting the
<iframe>
code from above into the “Embed” field of the Video element. Same behavior.