#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):

 Wow!
 I really did not know that it is possible to create nested tables. I
 looked at my code ... it appeared long time ago I made some changes which
 (in fact unintended) disabled the ability to insert a table into a cell
 ....

 Well, since I intend to get a decent tablehandler before the end of this
 year I made several steps back.
 I guess it's better to solve all problems concerning tables just step by
 step :-)

 Attached is a new patch, just for further development purposes.
 I made some changes to _InstallTableMap so it will support tablesections
 like thead.
 For Geckolike user agents I made use of innerHTML. It could be done with
 more DOM-like functions, but I think this way it works the fastest (and
 with less coding).

 As far as I could test the patch it's preserving al further capabilities
 of the current tablehandler. It supports the dragresizetable-plugin and
 more important ... it supports nested tables. I stopped testing nested
 tabled onto a third level, but I guess it could hold thousands of them!

 Just to keep it possible to keep theads when splitting down a cell, I
 preserved the changes I made before to VerticalSplitCell. It's just to
 keep decent functionality at the moment.
 In a later stage VerticalSplitCell should make a call to _InstallTableMap
 (I already did some testing, but in the adepting of the tablemap I
 stumbled upon some empty array elements).

 Next steps in the further development of the tablehandler would be:
 1. Make it impossible to merge down cells from one tablesection to another
 (as it has been suggested in
 [http://www.fckeditor.net/forums/viewtopic.php?f=11&t=10726]
 2. Adjust the colspans when splitting and merging horizontaly (it's a
 matter of removing identical columns from the tableMap)
 3. Adjust rowspans via the tablemap and _InstallTableMap  after vertically
 splitting and merging cells
 4. Resolve the other tickets concerning tables.

 Well anyway, take a look at this one.

 And Alfonso ... when we get it solved before the end of the year I'll buy
 you a beer, ok?

-- 
Ticket URL: <http://dev.fckeditor.net/ticket/1865#comment:24>
FCKeditor <http://www.fckeditor.net/>
The text editor for Internet
------------------------------------------------------------------------------
_______________________________________________
FCKeditor-Trac mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/fckeditor-trac

Reply via email to