grapesjs-preset-webpage
Advanced tools
Comparing version 0.1.9 to 0.1.10
{ | ||
"name": "grapesjs-preset-webpage", | ||
"version": "0.1.9", | ||
"version": "0.1.10", | ||
"description": "GrapesJS Plugin Webpage Preset", | ||
@@ -39,20 +39,20 @@ "main": "dist/grapesjs-preset-webpage.min.js", | ||
"babel-core": "^6.26.0", | ||
"babel-loader": "^7.1.2", | ||
"babel-loader": "^7.1.4", | ||
"babel-plugin-transform-object-rest-spread": "^6.26.0", | ||
"babel-preset-env": "^1.6.1", | ||
"eslint": "^4.16.0", | ||
"eslint": "^4.19.1", | ||
"html-webpack-plugin": "^2.30.1", | ||
"node-sass": "^4.7.2", | ||
"webpack": "^3.10.0", | ||
"webpack-dev-server": "^2.11.1" | ||
"node-sass": "^4.8.3", | ||
"webpack": "^3.11.0", | ||
"webpack-dev-server": "^2.11.2" | ||
}, | ||
"dependencies": { | ||
"grapesjs-aviary": "^0.1.2", | ||
"grapesjs-blocks-basic": "^0.1.5", | ||
"grapesjs-component-countdown": "^0.1.1", | ||
"grapesjs-navbar": "^0.1.3", | ||
"grapesjs-blocks-basic": "^0.1.7", | ||
"grapesjs-component-countdown": "^0.1.2", | ||
"grapesjs-navbar": "^0.1.5", | ||
"grapesjs-plugin-export": "^0.1.5", | ||
"grapesjs-plugin-filestack": "^0.1.1", | ||
"grapesjs-plugin-forms": "^0.3.4" | ||
"grapesjs-plugin-forms": "^0.3.5" | ||
} | ||
} |
@@ -71,2 +71,3 @@ import { | ||
command: osm, | ||
active: true, | ||
className: 'fa fa-paint-brush', | ||
@@ -83,3 +84,2 @@ },{ | ||
id: obl, | ||
active: true, | ||
command: obl, | ||
@@ -107,4 +107,8 @@ className: 'fa fa-th-large', | ||
const openBl = pn.getButton('views', obl); | ||
editor.on('load', () => openBl && openBl.set('active', 1)); | ||
// On component change show the Style Manager | ||
config.showStylesOnChange && editor.on('component:selected', () => { | ||
const openSmBtn = pn.getButton('views', osm); | ||
const openLayersBtn = pn.getButton('views', ola); | ||
@@ -115,3 +119,2 @@ | ||
if ((!openLayersBtn || !openLayersBtn.get('active')) && editor.getSelected()) { | ||
const openSmBtn = pn.getButton('views', osm); | ||
openSmBtn && openSmBtn.set('active', 1); | ||
@@ -118,0 +121,0 @@ } |
Sorry, the diff of this file is too big to display
227707
1158