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
parent
commit
d861ba6612
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 1
      src/panels/model/Panel.js
  2. 4
      src/panels/view/PanelView.js

1
src/panels/model/Panel.js

@ -8,6 +8,7 @@ module.exports = Backbone.Model.extend({
content: '',
visible: true,
buttons: [],
attributes: {}
},
initialize(options) {

4
src/panels/view/PanelView.js

@ -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') : '';

Loading…
Cancel
Save