Issue #503Opened November 10, 2017by sanjeevSavitr0 reactions

command event that is triggered when we click "Hide Preview"

Question

Hi, editor.on('run:preview', () => { console.log('preview ON') }) This is working fine.

Now I need the command event that is triggered when we click "Hide Preview".

Answers (3)

artfNovember 14, 20170 reactions

stop:preview

theanhmxNovember 27, 20170 reactions

`editor.on('run:preview', () => { console.log('preview ON') })

editor.on('stop:preview', () => {
  console.log('preview OFF')
})`

i tried this but the stop:preview event didn't fire

Related Questions and Answers

Continue research with similar issue discussions.

Paid Plugins That Match This Issue

Curated by issue keywords and label relevance to help you ship faster.

View all plugins

Loading paid plugin recommendations...

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.