diff --git a/modules/quanthub_core/js/qh_core-power-bi-customizer.js b/modules/quanthub_core/js/qh_core-power-bi-customizer.js index 9c7d389..dc7e367 100644 --- a/modules/quanthub_core/js/qh_core-power-bi-customizer.js +++ b/modules/quanthub_core/js/qh_core-power-bi-customizer.js @@ -40,6 +40,20 @@ function updateToken($, context) { function powerbi_embed_customizeReport($, context, width = 0, height = 0, title = '', name = '') { const iframes = $(`#${context.selector} iframe`); for (let i = 0; i < iframes.length; i++) { + if ($(iframes[i]).parents().hasClass('ckeditor-accordion-container')){ + const togglers = $(iframes[i]).parents().find('.ckeditor-accordion-toggler'); + togglers.each((i)=>{ + $(togglers[i]).off('click'); + $(togglers[i]).on('click', function(e){ + let $title = this.parentNode; + if ($title.classList.contains('active')) { + //probably will need timeout for animation + console.log('powerBi is inside ckeditor-accordion-container!'); + } + }); + }) + + } iframes[i].frameBorder = 0; if (iframes[i].attributes.getNamedItem('style')) { iframes[i].attributes.removeNamedItem('style');