Ticket #6155: 6155.patch

File 6155.patch, 892 bytes (added by Tobiasz Cudnik, 14 years ago)
  • _source/plugins/table/dialogs/table.js

     
    130130                                if ( this._.selectedElement )
    131131                                {
    132132                                        var selection = editor.getSelection(),
    133                                                 bms = editor.getSelection().createBookmarks();
     133                                                bms = selection.createBookmarks();
    134134                                }
    135135
    136136                                var table = this._.selectedElement || makeElement( 'table' ),
     
    177177                                                for ( i = 0 ; i < theRow.getChildCount() ; i++ )
    178178                                                {
    179179                                                        var th = theRow.getChild( i );
    180                                                         if ( th.type == CKEDITOR.NODE_ELEMENT )
     180                                                        // Skip bookmark nodes. (#6155)
     181                                                        if ( th.type == CKEDITOR.NODE_ELEMENT && !th.hasAttribute( '_fck_bookmark' ) )
    181182                                                        {
    182183                                                                th.renameNode( 'th' );
    183184                                                                th.setAttribute( 'scope', 'col' );
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy