I am not entirely sure of the underlying issues which cause video/iframe/embed blocks to cause ST onDragStart to fail before completing the block drag event, however it affects all iframes, even the Video block that comes with ST by default. The st-drag-element class is added to the element, but then all handles are removed and the element is rendered without content.
By removing the following lines of code the user is still able to see where the block is being moved to and the drag event is able to finish successfully with all blocks, text, video, custom iframe.
I am not entirely sure of the underlying issues which cause video/iframe/embed blocks to cause ST
onDragStart
to fail before completing the block drag event, however it affects all iframes, even the Video block that comes with ST by default. Thest-drag-element
class is added to the element, but then all handles are removed and the element is rendered without content.By removing the following lines of code the user is still able to see where the block is being moved to and the drag event is able to finish successfully with all blocks, text, video, custom iframe.
This PR is related to https://github.com/madebymany/sir-trevor-js/issues/549