Browse Source

Update style and JSDoc

pull/36/head
Artur Arseniev 10 years ago
parent
commit
d73927f9ee
  1. 2
      src/commands/view/Preview.js
  2. 2
      src/demo.js
  3. 4
      src/editor/main.js
  4. 1
      src/editor/view/EditorView.js
  5. 3
      styles/css/main.css
  6. 1
      styles/scss/main.scss

2
src/commands/view/Preview.js

@ -35,6 +35,7 @@ define(function() {
canvasS.left = '0';
canvasS.padding = '0';
canvasS.margin = '0';
editor.trigger('change:canvasOffset');
},
stop: function(editor, sender) {
@ -47,6 +48,7 @@ define(function() {
if(this.helper) {
this.helper.style.display = 'none';
}
editor.trigger('change:canvasOffset');
}
};
});

2
src/demo.js

@ -283,7 +283,7 @@ require(['config/require-config'], function() {
);
window.grapesEditor = editor;
window.editor = editor;
});
});

4
src/editor/main.js

@ -25,6 +25,10 @@
* ```js
* var editor = grapesjs.init({...});
* ```
* Available events
* #run:{commandName}
* #stop:{commandName}
* #load - When the editor is loaded
*
* @module Editor
* @param {Object} config Configurations

1
src/editor/view/EditorView.js

@ -10,6 +10,7 @@ function(Backbone){
this.model.on('loaded', function(){
this.pn.active();
this.model.runDefault();
this.model.trigger('load');
}, this);
},

3
styles/css/main.css

@ -2668,8 +2668,7 @@ $fontColorActive: #4f8ef7;
background-color: #444;
position: relative;
box-sizing: border-box;
height: 100%;
min-width: 1250px; }
height: 100%; }
.gjs-freezed {
opacity: 0.5;

1
styles/scss/main.scss

@ -162,7 +162,6 @@ $fontV: 5;//random(1000)
position:relative;
box-sizing: border-box;
height: 100%;
min-width: 1250px;
}
.#{$app-prefix}freezed{
@include opacity(0.50);

Loading…
Cancel
Save