Ticket #4480: 4480.patch
File 4480.patch, 2.1 KB (added by , 15 years ago) |
---|
-
_source/plugins/table/dialogs/table.js
97 97 } 98 98 } 99 99 100 // Modify the table headers. Depends on havin trows and cols generated100 // Modify the table headers. Depends on having rows and cols generated 101 101 // correctly so it can't be done in commit functions. 102 102 103 103 // Should we make a <thead>? … … 115 115 if ( th.type == CKEDITOR.NODE_ELEMENT ) 116 116 { 117 117 th.renameNode( 'th' ); 118 if ( !i ) 119 th.setAttribute( 'scope', 'col' ); 118 th.setAttribute( 'scope', 'col' ); 120 119 } 121 120 } 122 121 thead.append( theRow.remove() ); … … 153 152 { 154 153 newCell = new CKEDITOR.dom.element( table.$.rows[ row ].cells[ 0 ] ); 155 154 newCell.renameNode( 'th' ); 156 newCell.setAttribute( 'scope', ' col' );155 newCell.setAttribute( 'scope', 'row' ); 157 156 } 158 157 } 159 158 … … 166 165 if ( row.getParent().getName() == 'tbody' ) 167 166 { 168 167 newCell = new CKEDITOR.dom.element( row.$.cells[0] ); 169 newCell.renameNode( 'td' );168 newCell.renameNode( 'td' ); 170 169 newCell.removeAttribute( 'scope' ); 171 170 } 172 171 } -
CHANGES.html
71 71 <li><a href="http://dev.fckeditor.net/ticket/4385">#4385</a> : Fixed editor's auto adjusting on DOM structure were confusing the dirty checking mechanism.</li> 72 72 <li><a href="http://dev.fckeditor.net/ticket/4397">#4397</a> : Fixed regression of [3816] where turn on design mode is causing Firefox3 to scroll the host page.</li> 73 73 <li><a href="http://dev.fckeditor.net/ticket/4254">#4254</a> : Added basic API sample.</li> 74 <li><a href="http://dev.fckeditor.net/ticket/4480">#4480</a> : Fixed scope attribute in th.</li> 74 75 </ul> 75 76 <h3> 76 77 CKEditor 3.0</h3>