当我们点击“隐藏预览”时触发的命令事件
你好, editor.on('run:preview', () => { console.log('preview ON') }) 这样运行正常。 现在我需要点击“隐藏预览”时触发的命令事件。
artf
“停止:预览”
theanhmx
'editor.on('run:preview', () => { console.log(“预览开启”) }) editor.on('stop:preview', () => { console.log(“预览关闭”) })` 我试过了,但停止:预览事件没有触发
artf
由 https://github.com/artf/grapesjs/pull/592 修复