grapesjs_codeapps
Version:
Free and Open Source Web Builder Framework/SC Modification
23 lines (19 loc) • 392 B
JavaScript
const ComponentTableBody = require('./ComponentTableBody');
module.exports = ComponentTableBody.extend(
{
defaults: {
...ComponentTableBody.prototype.defaults,
type: 'thead',
tagName: 'thead'
}
},
{
isComponent(el) {
let result = '';
if (el.tagName == 'THEAD') {
result = { type: 'thead' };
}
return result;
}
}
);