mirror of https://github.com/artf/grapesjs.git
3 changed files with 24 additions and 0 deletions
@ -0,0 +1,18 @@ |
|||
import Component from './ComponentText'; |
|||
|
|||
module.exports = Component.extend( |
|||
{ |
|||
defaults: { |
|||
...Component.prototype.defaults, |
|||
tagName: 'label', |
|||
traits: ['id', 'title', 'for'] |
|||
} |
|||
}, |
|||
{ |
|||
isComponent(el) { |
|||
if (el.tagName == 'LABEL') { |
|||
return { type: 'label' }; |
|||
} |
|||
} |
|||
} |
|||
); |
|||
@ -0,0 +1 @@ |
|||
module.exports = require('./ComponentLinkView').extend({}); |
|||
Loading…
Reference in new issue