Roo/htmleditor/BlockTd.js
authorAlan <alan@roojs.com>
Thu, 23 Dec 2021 07:51:11 +0000 (15:51 +0800)
committerAlan <alan@roojs.com>
Thu, 23 Dec 2021 07:51:11 +0000 (15:51 +0800)
Roo/htmleditor/BlockTd.js

index 8f4082d..db7ad47 100644 (file)
@@ -405,7 +405,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, {
                     throw "cant find left cell?";
                 }
                 var ntd = this.node.ownerDocument.createElement('td');
-                table[l.r][l.c].cell.row.insertBefore(ntd, table[l.r][l.c].cell.nextSibling);
+                table[l.r][l.c].cell.parentNode.insertBefore(ntd, table[l.r][l.c].cell.nextSibling);
                 table[r][c] = { cell : ntd, col : c, row: r , colspan : 1 , rowspan : 1 };
             }