is_preview flag to add messages, placeholder content etc. inside a template or block when previewing the page inside the editor.
Objects
is_preview
The is_preview flag indicates whether the template is being rendered inside the editor or not.
You can use
