how to add trait for table td tag? #4359
Unanswered
senthil177cse
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi @artf ..
i am trying to add the colspan and rowspan for tablle td tag but its not adding? below is the code i have added for table..
this.editor.Components.addType('cell', {
isComponent: el => el.tagName == 'td',
model: {
defaults: {
traits: [
'id',
'name',
{
type:'text',
label:'colspan',
name:'colspan'
},
{
type:'text',
label:'rowspan',
name:'rowspan'
}],
},
},
});
Beta Was this translation helpful? Give feedback.
All reactions