grapesjs_codeapps
Version:
Free and Open Source Web Builder Framework/SC Modification
26 lines (19 loc) • 488 B
JavaScript
import Backbone from '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'));
}
}
});