@ -2,5 +2,7 @@ define(function () {
return {
// Style prefix
stylePrefix: 'cm-',
inlineCss: false,
};
});
@ -6,7 +6,8 @@ define(['backbone'],
return Backbone.Model.extend({
/** @inheritdoc */
build: function(model){
build: function(model, cssc){
var inlineCss = 1;
var coll = model.get('components') || model,
code = '';
@ -64,7 +64,7 @@ define(function() {
this.modal.open();
}
var addCss = this.protCss || '';
this.htmlEditor.setContent( this.cm.getCode(this.components, 'html') );
this.htmlEditor.setContent(this.cm.getCode(this.components, 'html', this.cssc));
this.cssEditor.setContent(addCss + this.cm.getCode(this.components, 'css', this.cssc));
if(this.sender)
@ -3056,7 +3056,7 @@ ol.example li.placeholder:before {
border-left: 1px solid rgba(5, 5, 5, 0.3); }
.gjs-nv-item > .gjs-nv-children {
margin-left: 15px;
margin-left: 10px;
display: none; }
.gjs-nv-item.open > .gjs-nv-children {
@ -607,7 +607,7 @@ ol.example li.placeholder:before {position: absolute;}
border-left: 1px solid lighten($mainDkColor,2%);
.#{$nv-prefix}item > .#{$nv-prefix}children {
display: none;
.#{$nv-prefix}item.open > .#{$nv-prefix}children { display: block; }