Live preview of embeded script does not show up
Hello,
we have a third party component that we are embedding to Brizy. When we use the Embed widget, it does not show it. Only the Live version does. When using other builders like Elementor, this works flawlessly.
You can try it yourself:
<script type="text/javascript" src="https://form.fapi.cz/script.php?id=87bc6355-857f-4ef2-9ef3-2e03cdb6a5f0"></script>
What does this do is that it fetches the script, executes it and adds a new div with a form below the script element itself.
Could you please explain us, why this does not work? This is a crucial point for us. We need to show it in the editor. Why the script is not actually executed? Does the editor do some magic to prevent some scripts to execute? If we understand the technical limitation of Brizy, we would be potentially able to change the embedded code on our side.
Thank you.
-
Hi,
Thank you for your message and all these details.
I checked the script you send us and I found that it doesn't display in the editor mode but in the preview and live mode, all is displayed correctly, like you noticed. This is a normal way of working. As you can notice this script has the src that has the reference to a form. Therefore, in the editor, this reference can't be displayed but in the preview mode, it can be made and therefore can be displayed the code from src.
Best regards,
Sandra0 -
Hi Sandra,
I do not understand why "this is a normal way of working". I would expect the source to be loaded. Why is it not loaded? If it is visible on live and preview, but not editor, it is not really wysiwyg...
Regards,
Martin
0 -
Hi,
I'm sorry if I didn't explain well. The main reason is the same as "why the button doesn't work inside editor", or "why the form doesn't work inside the editor", or "why tracking script is not working and loading in the editor mode". In the editor mode, scripts can't load for many reasons, inclusively security and performance reasons.
Best regards,
Sandra0
Please sign in to leave a comment.
Comments
3 comments