|
|
@ -64,8 +64,9 @@ define([ 'backbone', 'require'], |
|
|
|
|
|
|
|
|
onAdd: function(model, c, opts){ |
|
|
onAdd: function(model, c, opts){ |
|
|
var style = model.get('style'); |
|
|
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 cssC = this.editor.get('CssComposer'); |
|
|
var newClass = this.editor.get('SelectorManager').add(model.cid); |
|
|
var newClass = this.editor.get('SelectorManager').add(model.cid); |
|
|
model.set({style:{}}); |
|
|
model.set({style:{}}); |
|
|
|