Announcement

Do not use the forums to submit bug reports, feature requests or patches, submit a New Ticket instead.

#1 2007-02-07 07:17:30

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

table footer

I've made some major changes to InsertTable module, and TableOperations plugin so that on table creation you are forced to add a summary(for accessibility purposes) and have the option to add header and footer at the same time. On table creation it works fine, the header and footer can be added, and the footer spans the table (using colspan as expected) as it should. Yet when doing the same from "Table Properties" in table-operations.js the colspan is trimmed after it's done inserting.

At the end of the

var dialog = new PopupWin(this.editor, HTMLArea._lc("Table Properties", "TableOperations"), function(dialog, params) {

I've tried printing the innerHTML for the table and it does appear there, but when control is returned back to the editor from the popup the colspan is gone. Does anyone know of anything in table-operations.js or associated functions that may cause attributes to be stripped? I've tried it via element.colspan and element.setAttribute('colspan', colCount) to the same effect. Note: colCount is a previously define integer obtained by counting the number of td tags in the first tr of the tbody it finds.

Any suggestions what could cause this behaviour would be appreciated :s


thanks


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

#2 2007-02-07 10:50:06

ray
Xinha Administrator
From: Germany
Registered: 2005-03-23
Posts: 521
Website

Re: table footer

The property is named "colSpan", not "colspan"

Offline

#3 2007-02-07 11:03:47

jedi58
Xinha Authority
From: Leicester, UK
Registered: 2007-01-14
Posts: 113
Website

Re: table footer

ah, brilliant - thanks!

(wonder why my previous function with lower case worked!)


David G. Paul
[url]http://www.newearthonline.co.uk[/url]

Offline

Board footer

Powered by FluxBB