'run:preview' and 'stop:preview' are not detecting on preview #6486
Answered
by
mosh-tudor
chetan-bbc
asked this question in
Q&A
-
Hi, Please note, just few days back both below code were working, but it has stopped now from detecting the preview mode.
also i tried the alternative, it is also not detecting the preview action.
I manually tried to add preview command, which overrides the default and will not support on preview stop. please see the below code.
Could you please help me on how we can detect the preview on and off. Thank you for your help in advance. |
Beta Was this translation helpful? Give feedback.
Answered by
mosh-tudor
Apr 14, 2025
Replies: 1 comment 1 reply
-
@chetan-bbc This works for me: editor.on('command:run:preview', () => {
console.log('Preview mode started');
});
editor.on('command:stop:preview', () => {
console.log('Preview mode stopped');
}); |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
chetan-bbc
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
@chetan-bbc This works for me: