Automatic script reload when switching back to preview
-
Hi,
right now, a render script of a flexible content entry is loaded just once when editing a page.
This results in previews being incorrect once edited. Once the backend is refreshed, the preview is great again.
There is a hook to run custom javascript code:
“acfe/fields/flexible_content/preview”
https://ww.wp.xz.cn/support/topic/dynamic-preview-reinit-js-after-block-update/This can help during development and when creating small projects, but creating dynamic page elements in a bigger environment makes this step unnecessary complicated.
Is there a way to make a render script refresh itself automatically once the user has switched back to preview mode?
Thank you for your help!
The topic ‘Automatic script reload when switching back to preview’ is closed to new replies.