mirror of https://github.com/artf/grapesjs.git
1 changed files with 6 additions and 3 deletions
@ -1,15 +1,18 @@ |
|||
import Component from './Component'; |
|||
import { toLowerCase } from 'utils/mixins'; |
|||
import { toLowerCase } from '../../utils/mixins'; |
|||
|
|||
export default class ComponentTableCell extends Component { |
|||
get defaults() { |
|||
return { |
|||
// @ts-ignore
|
|||
...super.defaults, |
|||
type: 'cell', |
|||
tagName: 'td', |
|||
draggable: ['tr'], |
|||
}; |
|||
} |
|||
} |
|||
|
|||
ComponentTableCell.isComponent = el => ['td', 'th'].indexOf(toLowerCase(el.tagName)) >= 0; |
|||
static isComponent(el: HTMLElement) { |
|||
return ['td', 'th'].indexOf(toLowerCase(el.tagName)) >= 0; |
|||
} |
|||
} |
|||
Loading…
Reference in new issue