mirror of https://github.com/artf/grapesjs.git
2 changed files with 10 additions and 11 deletions
@ -1,22 +1,17 @@ |
|||
import ComponentTableBody from './ComponentTableBody'; |
|||
import { toLowerCase } from 'utils/mixins'; |
|||
|
|||
const type = 'tfoot'; |
|||
|
|||
export default ComponentTableBody.extend( |
|||
{ |
|||
defaults: { |
|||
...ComponentTableBody.prototype.defaults, |
|||
type: 'tfoot', |
|||
tagName: 'tfoot' |
|||
type, |
|||
tagName: type |
|||
} |
|||
}, |
|||
{ |
|||
isComponent(el) { |
|||
let result = ''; |
|||
|
|||
if (el.tagName == 'TFOOT') { |
|||
result = { type: 'tfoot' }; |
|||
} |
|||
|
|||
return result; |
|||
} |
|||
isComponent: el => toLowerCase(el.tagName) === type |
|||
} |
|||
); |
|||
|
|||
Loading…
Reference in new issue