@ -64,7 +64,8 @@ module.exports = Backbone.View.extend({
var em = this.config.em;
if(wrap) {
var ppfx = this.ppfx;
var body = this.frame.$el.contents().find('body');
//var body = this.frame.$el.contents().find('body');
var body = $(this.frame.el.contentWindow.document.body);
var cssc = em.get('CssComposer');
var conf = em.get('Config');
var confCanvas = this.config;
@ -47,9 +47,8 @@ module.exports = Backbone.View.extend({
// Panels
this.$el.append(this.pn.render());
this.$el.attr('class', this.className);
contEl.addClass(conf.stylePrefix + 'editor-cont');
contEl.html(this.$el);
contEl.empty().append(this.$el);
return this;
}
@ -89,10 +89,7 @@ module.exports = Backbone.View.extend({
* @private
* */
updateOpen() {
if(this.model.get('open'))
this.$el.show();
else
this.$el.hide();
this.el.style.display = this.model.get('open') ? '' : 'none';
},
/**
@ -28,10 +28,12 @@ module.exports = config => {
* });
*/
add(id, plugin) {
if(plugins[id])
if (plugins[id]) {
return plugins[id];
plugins[id] = plugin;
return plugin;