Browse Source

Update preview command

pull/2620/head
Artur Arseniev 6 years ago
parent
commit
4c1e74c8d2
  1. 4
      src/commands/view/Preview.js

4
src/commands/view/Preview.js

@ -49,8 +49,8 @@ export default {
const { sender = {} } = this;
sender.set && sender.set('active', 0);
const panels = this.getPanels(editor);
if (editor.Panels.getButton("options","sw-visibility").attributes.active) {
editor.runCommand('sw-visibility');
if (editor.Panels.getButton('options', 'sw-visibility').get('active')) {
editor.runCommand('sw-visibility');
}
editor.getModel().runDefault();
panels.style.display = '';

Loading…
Cancel
Save