diff --git a/src/js/ui/carousel.js b/src/js/ui/carousel.js index 8a6ffe9..07f713a 100644 --- a/src/js/ui/carousel.js +++ b/src/js/ui/carousel.js @@ -9,6 +9,8 @@ const CarouselUI = ((window) => { document.querySelectorAll(`.${NAME}`).forEach((el, i) => { const carousel = new Carousel(el); + el.ui = carousel; + // create next/prev arrows if (el.dataset.bsArrows) { const next = document.createElement("button"); diff --git a/src/scss/types/editor.scss b/src/scss/types/editor.scss index 7b5e955..6fd5a68 100755 --- a/src/scss/types/editor.scss +++ b/src/scss/types/editor.scss @@ -242,3 +242,15 @@ img { img { border: 1px dashed; } + +.ss-htmleditorfield-file.embed { + @include responsive-ratio(4,3,true); + position: relative; + iframe { + position: absolute; + left: 0; + right: 0; + top:0; + bottom: 0; + } +} \ No newline at end of file