Changeset 4392
- Timestamp:
- 10/16/09 12:30:57 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/pasting/_source/plugins/pastefromword/plugin.js
r4390 r4392 109 109 } 110 110 return childs; 111 }; 112 113 elementPrototype.nearestParent = function( tagName ) 114 { 115 var parent = this.parent; 116 while( parent && !parent.name == tagName ) 117 parent = parent.parent; 118 return parent; 111 119 }; 112 120 … … 645 653 else 646 654 elementMigrateFilter( config[ 'format_' + ( config.enterMode == CKEDITOR.ENTER_P ? 'p' : 'div' ) ] )( element ); 655 }, 656 657 'td' : function ( element ) 658 { 659 // 'td' in 'thead' is actually <th>. 660 if ( element.nearestParent( 'thead') ) 661 element.name = 'th'; 647 662 }, 648 663
Note: See TracChangeset
for help on using the changeset viewer.
