UNPKG

grapesjs

Version:

Free and Open Source Web Builder Framework

28 lines (19 loc) 494 B
var Backbone = require('backbone'); module.exports = Backbone.Model.extend({ idAttribute: 'name', defaults :{ name: '', // Width to set for the editor iframe width: '', // Height to set for the editor iframe height: '', // The width which will be used in media queries, // If empty the width will be used widthMedia: null, }, initialize() { if (this.get('widthMedia') == null) { this.set('widthMedia', this.get('width')); } } });