Roo/htmleditor/BlockTd.js
authorAlan <alan@roojs.com>
Mon, 20 Dec 2021 06:57:15 +0000 (14:57 +0800)
committerAlan <alan@roojs.com>
Mon, 20 Dec 2021 06:57:15 +0000 (14:57 +0800)
Roo/htmleditor/BlockTd.js

index 4bfc24d..599e795 100644 (file)
@@ -292,7 +292,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, {
         this.node.innerHTML += ' ' + tr.childNodes[i+1].innerHTML;
         tr.removeChild(tr.childNodes[i+1]);
         this.colspan++;
-        this.setAttribute('colspan', this.colspan);
+        this.node.setAttribute('colspan', this.colspan);
 
     },
     
@@ -307,7 +307,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, {
         this.node.innerHTML =  tr.childNodes[i-1].innerHTML + ' ' +  this.node.innerHTML ;
         tr.removeChild(tr.childNodes[i-1]);
         this.colspan++;
-        this.setAttribute('colspan', this.colspan);
+        this.node.setAttribute('colspan', this.colspan);
 
     }