Open Live Preview by default #8662
Answered
by
jasonvarga
JorisOrangeStudio
asked this question in
Q&A
-
Is it possible to open the Live Preview of an entry by default when opening the entry in the CP? Is it maybe possible to trigger that action (to open Live Preview) via javascript? |
Beta Was this translation helpful? Give feedback.
Answered by
jasonvarga
Sep 1, 2023
Replies: 1 comment
-
Nothing native to do it, but yes you could use some Javascript. This seems to work. setTimeout(() => document.querySelector('.publish-tab-actions button').click(), 1000); |
Beta Was this translation helpful? Give feedback.
0 replies
Answer selected by
JorisOrangeStudio
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nothing native to do it, but yes you could use some Javascript. This seems to work.