$inPreview function like $inEditor #1708
michaeljcoyne
started this conversation in
General
Replies: 1 comment
-
Hey @michaeljcoyne, You could use "previewData" maybe? https://twill.io/docs/crud-modules/revisions-and-previewing.html#revisions-and-previewing |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Is there a function to tell if you are in the editor preview to stop scripts executing? I want this in a main layout file and not a block.
Like the block editor has $inEditor
Beta Was this translation helpful? Give feedback.
All reactions