mirror of https://github.com/artf/grapesjs.git
2 changed files with 9 additions and 2 deletions
@ -1,15 +1,18 @@ |
|||||
import Component from './Component'; |
import Component from './Component'; |
||||
|
import { toLowerCase } from 'utils/mixins'; |
||||
|
|
||||
|
const tagName = 'tr'; |
||||
|
|
||||
export default Component.extend( |
export default Component.extend( |
||||
{ |
{ |
||||
defaults: { |
defaults: { |
||||
...Component.prototype.defaults, |
...Component.prototype.defaults, |
||||
tagName: 'tr', |
tagName, |
||||
draggable: ['thead', 'tbody', 'tfoot'], |
draggable: ['thead', 'tbody', 'tfoot'], |
||||
droppable: ['th', 'td'] |
droppable: ['th', 'td'] |
||||
} |
} |
||||
}, |
}, |
||||
{ |
{ |
||||
isComponent: el => el.tagName == 'TR' && true |
isComponent: el => toLowerCase(el.tagName) === tagName |
||||
} |
} |
||||
); |
); |
||||
|
|||||
Loading…
Reference in new issue