grapesjs-clot
Version:
Free and Open Source Web Builder Framework
19 lines (16 loc) • 367 B
JavaScript
import Component from './ComponentText';
import { toLowerCase } from 'utils/mixins';
const type = 'label';
export default Component.extend(
{
defaults: {
...Component.prototype.defaults,
type,
tagName: type,
traits: ['id', 'title', 'for']
}
},
{
isComponent: el => toLowerCase(el.tagName) === type
}
);