Browse Source
Merge pull request #756 from punkt2/panel-attributes #755
Set panel attributes
pull/758/head
Artur Arseniev
9 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with
5 additions and
0 deletions
-
src/panels/model/Panel.js
-
src/panels/view/PanelView.js
|
|
|
@ -8,6 +8,7 @@ module.exports = Backbone.Model.extend({ |
|
|
|
content: '', |
|
|
|
visible: true, |
|
|
|
buttons: [], |
|
|
|
attributes: {} |
|
|
|
}, |
|
|
|
|
|
|
|
initialize(options) { |
|
|
|
|
|
|
|
@ -29,6 +29,10 @@ module.exports = Backbone.View.extend({ |
|
|
|
this.$el.html(this.model.get('content')); |
|
|
|
}, |
|
|
|
|
|
|
|
attributes() { |
|
|
|
return this.model.get('attributes'); |
|
|
|
}, |
|
|
|
|
|
|
|
initResize() { |
|
|
|
const em = this.config.em; |
|
|
|
const editor = em ? em.get('Editor') : ''; |
|
|
|
|