r1680 - branches/bxe_2_0/mozile
[email protected] Mon, 21 May 2007 21:22:45 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Mon May 21 21:22:45 2007
New Revision: 1680
Log:
fix BXEB-16
Robuster Tabellenimport
Modified:
branches/bxe_2_0/mozile/mozCE.js
Modified: branches/bxe_2_0/mozile/mozCE.js
==============================================================================
--- branches/bxe_2_0/mozile/mozCE.js (original)
+++ branches/bxe_2_0/mozile/mozCE.js Mon May 21 21:22:45 2007
@@ -818,14 +818,27 @@
content += "</"+ paraElementVdom.bxeClipboardFirstChild +">\n";
}
-
+ //find largest row
+ var max = 0;
+ for (var i = _starti; i < row.length; i++) {
+ var cell = row[i].match(/([^\t]*[\t$]+)/g);
+ if (cell.length > max) {
+ max = cell.length;
+ }
+ }
+ console.log(max);
for (var i = _starti; i < row.length; i++) {
content += "<"+ elementNameParent +">";
row[i] = row[i] + "\t";
var cell = row[i].match(/([^\t]*[\t$]+)/g);
- for (var j = 0; j < cell.length; j++) {
+ for (var j = 0; j < max; j++) {
content += "<"+elementName_start + ">";
- content += cell[j];
+ if (cell[j]) {
+ content += cell[j];
+ } else {
+ content += "#";
+ }
+
content += "</" + elementName + ">\n";
}
content += "</"+ elementNameParent +">\n";
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs