Hi DW community.
We run a site for a customer on version 9.15.4. We have quit a bit of custom blocks that the customer can insert using the visual editor.
One of the blocks contains a simple section where the user can insert a Code snippet that could contain a script to render some external data.
They have now tried to use that to render a Google Map.
However, when this is shown in the visual editor, it does some weird stuff, that makes it almost impossible to insert other rows.
In this case the script, when rendered is displaying a Iframe. The Visual editor is also an Iframe, so maybe that is the issue?
Dynamicweb can’t of course make sure that the visual editor works for every scenario with a external script like this,
but what would be the best approach to prevent this?
I can see some of DW’s own modules uses: Dynamicweb.Context.Current.Request.QueryString.Get("VisualEdit") – to check if you are using the visual editor or not.
Would a viable solution be to use this an render a placeholder when inside the visual editor, so editing still works?