#1865: Contextmenu in last row of a table with thead doesn't work
-------------------------------+--------------------------------------------
Reporter: kwillems | Owner: alfonsoml
Type: Bug | Status: assigned
Priority: Normal | Milestone: FCKeditor 2.6.4
Component: UI : Context Menu | Version: FCKeditor 2.5.1
Keywords: Confirmed |
-------------------------------+--------------------------------------------
Comment(by kwillems):
Thanx for reviewing Alfonso!
About the DragResizeTable plugin: well, that's not the biggest problem at
the moment.
In _CreateTableMap
{{{
var table = refCell.parentNode.parentNode.parentNode ;
}}}
should be changed to
{{{
'var table = (refCell.nodeName == 'TABLE' ? refCell :
refCell.parentNode.parentNode.parentNode ) ;
}}}
The pattern you mentioned is used on purpose in this stage, because I
did't want to change _InstallTableMap at this moment.
But in fact, it has nog significant effect on the working of the code.
The function getElementsByTagNames() does indeed grab all td- and th-
cells, even those in nested tables.
At this point I think it's better first to define what the tablehandler
should be capable of at all. You know my opinion on nested tables: 'better
not use them at all, because of a decrease of accessibility.
On the other hand: it's possible to exclude cell of nested tables in
getElementsByTagNames().
Regards,
Koen
--
Ticket URL: <http://dev.fckeditor.net/ticket/1865#comment:19>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac