mirror of https://github.com/artf/grapesjs.git
1 changed files with 7 additions and 2 deletions
@ -1,11 +1,16 @@ |
|||
import { View } from '../../common'; |
|||
import CssRule from '../model/CssRule'; |
|||
|
|||
export default class CssRuleView extends View { |
|||
export default class CssRuleView extends View<CssRule> { |
|||
config: any; |
|||
|
|||
// @ts-ignore
|
|||
tagName() { |
|||
return 'style'; |
|||
} |
|||
|
|||
initialize(o = {}) { |
|||
constructor(o: any = {}) { |
|||
super(o); |
|||
this.config = o.config || {}; |
|||
const { model } = this; |
|||
this.listenTo(model, 'change', this.render); |
|||
Loading…
Reference in new issue