Hi @[email protected],

I was wondering if you’re planning to make it possible to access elements inside iframes (such as userInputs, comments, gallery)? Using an editor can be pretty limiting at times. It would unlock so much new ways of customizing your own generators if one had access to elements inside iframes to work with them using JavaScript/HTML/CSS. I was just working with some of the user inputs, and didn’t realize that even these are inside an iframe as well… which is quite a bummer. I understand that it probably makes sense from architectural standpoint, though.

Thanks!

  • Cocell
    link
    English
    13 days ago

    If you did some research, you would know that an iframe has an encapsulated DOM tree, meaning that nothing outside its scope can access it.

    Though a ‘message system’ can be set up between the iframe (child) and the host (parent), then you may be able to run codes inside the iframe. But that makes it EXTREMELY risky, which is also why it is encapsulated in the first place.

    A more stable approach would be if the Dev exposed some functionalities of those iframes, if they are plugins perhaps we can configure them like how we can configure the current comment’s plugin to add new features or build a completely new custom interface with it, eliminating the need of employing an iframe.