r1552 - in branches/bxe_2_0: mozile relaxng
[email protected] Wed, 18 Oct 2006 16:31:42 +0200 (CEST)
| Newsgroups | gmane.editors.bitflux.cvs |
|---|---|
| Message-ID | <[email protected]> |
Author: chregu
Date: Wed Oct 18 16:31:41 2006
New Revision: 1552
Modified:
branches/bxe_2_0/mozile/mozCE.js
branches/bxe_2_0/relaxng/RelaxNG.js
Log:
add
emptyfirstrow="true"
as new option to
bxe:clipboard
Modified: branches/bxe_2_0/mozile/mozCE.js
==============================================================================
--- branches/bxe_2_0/mozile/mozCE.js (original)
+++ branches/bxe_2_0/mozile/mozCE.js Wed Oct 18 16:31:41 2006
@@ -778,16 +778,20 @@
content += ">";
var _starti = 0;
if (paraElementVdom.bxeClipboardFirstChild) {
- _starti = 1;
+ if (! paraElementVdom.bxeClipboardEmptyFirstRow ) {
+ _starti = 1;
+ }
content += "<"+ paraElementVdom.bxeClipboardFirstChild +">";
row[0] = row[0] + "\t";
var cell = row[0].match(/([^\t]*[\t$]+)/g);
for (var j = 0; j < cell.length; j++) {
content += "<"+paraElementVdom.bxeClipboardFirstGrandChild + ">";
- content += cell[j];
- content += "</" + paraElementVdom.bxeClipboardFirstGrandChild + ">";
+ if (! paraElementVdom.bxeClipboardEmptyFirstRow ) {
+ content += cell[j];
+ }
+ content += "</" + paraElementVdom.bxeClipboardFirstGrandChild + ">\n";
}
- content += "</"+ paraElementVdom.bxeClipboardFirstChild +">";
+ content += "</"+ paraElementVdom.bxeClipboardFirstChild +">\n";
}
@@ -798,11 +802,11 @@
for (var j = 0; j < cell.length; j++) {
content += "<"+elementName_start + ">";
content += cell[j];
- content += "</" + elementName + ">";
+ content += "</" + elementName + ">\n";
}
- content += "</"+ elementNameParent +">";
+ content += "</"+ elementNameParent +">\n";
}
- content += "</" + elementNameGrandParent + ">";
+ content += "</" + elementNameGrandParent + ">\n";
} else {
content = content.replace(/\n+$/,"");
content = "<"+elementName_start + ">"+ content.replace(/[\n]+/g,"</"+elementName+"><"+elementName_start+" >")+"</"+elementName+">";
Modified: branches/bxe_2_0/relaxng/RelaxNG.js
==============================================================================
--- branches/bxe_2_0/relaxng/RelaxNG.js (original)
+++ branches/bxe_2_0/relaxng/RelaxNG.js Wed Oct 18 16:31:41 2006
@@ -478,6 +478,9 @@
}
if (childNodes[i].hasAttribute("firstchild")) {
this.bxeClipboardFirstChild = childNodes[i].getAttribute("firstchild");
+ if (childNodes[i].hasAttribute("emptyfirstrow")) {
+ this.bxeClipboardEmptyFirstRow = childNodes[i].getAttribute("emptyfirstrow");
+ }
}
this.bxeClipboardChild = childNodes[i].getAttribute("child")
--
Bx-editor-cvs mailing list
[email protected]
http://lists.bitflux.ch/cgi-bin/listinfo/bx-editor-cvs