|
|
|
@ -38,6 +38,7 @@ const $ = Backbone.$; |
|
|
|
module.exports = Backbone.Model.extend({ |
|
|
|
defaults() { |
|
|
|
return { |
|
|
|
editing: 0, |
|
|
|
selected: new Collection(), |
|
|
|
clipboard: null, |
|
|
|
designerMode: false, |
|
|
|
@ -608,6 +609,15 @@ module.exports = Backbone.Model.extend({ |
|
|
|
.attr(this.attrsOrig); |
|
|
|
}, |
|
|
|
|
|
|
|
setEditing(value) { |
|
|
|
this.set('editing', value); |
|
|
|
return this; |
|
|
|
}, |
|
|
|
|
|
|
|
isEditing() { |
|
|
|
return !!this.get('editing'); |
|
|
|
}, |
|
|
|
|
|
|
|
/** |
|
|
|
* Set/get data from the HTMLElement |
|
|
|
* @param {HTMLElement} el |
|
|
|
|