@ -14,6 +14,7 @@
<div id="gjs" style="height:0px; overflow:hidden">
<header class="header-banner">
<div style="color:red; width: 300px;">TEST</div>
<div class="container-width">
<!--
<table>
@ -64,8 +64,9 @@ define([ 'backbone', 'require'],
onAdd: function(model, c, opts){
var style = model.get('style');
var em = this.editor;
if(!_.isEmpty(style) && this.editor){
if(!_.isEmpty(style) && em && em.get('Config').forceClass){
var cssC = this.editor.get('CssComposer');
var newClass = this.editor.get('SelectorManager').add(model.cid);
model.set({style:{}});
@ -29,6 +29,10 @@ define(function () {
// Return JS of components inside HTML from 'editor.getHtml()'
jsInHtml: true,
// On creation of a new Component (via object), if the 'style' attribute is not
// empty, all those roles will be moved in its new class
forceClass: true,
// Height for the editor container
height: '900px',