Issue #503💬 AnsweredOpened November 10, 2017by sanjeevSavitr0 reactions

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

快速解答by artf

stop:preview

Read full answer below ↓

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, 2017

stop:preview

theanhmxNovember 27, 2017

`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...

Free option

Check the open-source GrapesJS plugins on GitHub or run a quick search in our free catalog.

Browse free plugins →
Premium option

Premium plugins ship with support, regular updates, and production-ready features — save days of integration work.

Browse premium plugins →

Related tutorials

In-depth guides on the same topic.

All tutorials →

Browse Plugin Categories

Jump directly to plugin category pages on the marketplace.