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

index 26bf190..8f4082d 100644 (file)
@@ -404,7 +404,7 @@ Roo.extend(Roo.htmleditor.BlockTd, Roo.htmleditor.Block, {
                 if (l.c < 0) { //?? will this happen?
                     throw "cant find left cell?";
                 }
-                var ntd = this.node.documentElement.createElement('td');
+                var ntd = this.node.ownerDocument.createElement('td');
                 table[l.r][l.c].cell.row.insertBefore(ntd, table[l.r][l.c].cell.nextSibling);
                 table[r][c] = { cell : ntd, col : c, row: r , colspan : 1 , rowspan : 1 };
             }