Ticket #4809: 4809.patch

File 4809.patch, 722 bytes (added by pomu0325, 14 years ago)

I know it's a bit forcible way but it worked with IE/FF/Chrome

  • table.js

     
    105105                                        if ( !table.$.tHead && ( headers == 'row' || headers == 'both' ) )
    106106                                        {
    107107                                                var thead = new CKEDITOR.dom.element( table.$.createTHead() );
     108
     109                                                // Ensure caption comes first.
     110                                                var captionList = table.getElementsByTag('caption');
     111
     112                                                if ( captionList.count() > 0 )
     113                                                {
     114                                                        var caption = captionList.getItem( 0 );
     115                                                        caption.insertBefore( table.getFirst() );
     116                                                }
     117
    108118                                                tbody = table.getElementsByTag( 'tbody' ).getItem( 0 );
    109119                                                var theRow = tbody.getElementsByTag( 'tr' ).getItem( 0 );
    110120
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy