Browse Source

Preview command: move stop default from button to command

pull/202/head
Artur Arseniev 9 years ago
parent
commit
b875dca27f
  1. 4
      dist/grapes.min.js
  2. 2
      package.json
  3. 1
      src/commands/view/Preview.js
  4. 1
      src/panels/config/config.js

4
dist/grapes.min.js

File diff suppressed because one or more lines are too long

2
package.json

@ -1,7 +1,7 @@
{
"name": "grapesjs",
"description": "Free and Open Source Web Builder Framework",
"version": "0.7.7",
"version": "0.7.8",
"author": "Artur Arseniev",
"license": "BSD-3-Clause",
"homepage": "http://grapesjs.com",

1
src/commands/view/Preview.js

@ -17,6 +17,7 @@ module.exports = {
if(sender && sender.set)
sender.set('active', false);
editor.stopCommand('sw-visibility');
editor.getModel().stopDefault();
var that = this;
var panels = this.getPanels(editor);
var canvas = editor.Canvas.getElement();

1
src/panels/config/config.js

@ -30,7 +30,6 @@ module.exports = {
className: 'fa fa-eye',
command: prv,
context: prv,
stopDefaultCommand: 1,
attributes: { title: 'Preview' },
},{
id: ful,

Loading…
Cancel
Save