Changeset 4459
- Timestamp:
- 11/11/09 15:40:48 (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/branches/features/pasting/_source/plugins/pastefromword/plugin.js
r4393 r4459 111 111 }; 112 112 113 elementPrototype. nearestParent= function( tagName )113 elementPrototype.getAncestor = function( tagName ) 114 114 { 115 115 var parent = this.parent; 116 while( parent && !parent.name == tagName )116 while( parent && parent.name != tagName ) 117 117 parent = parent.parent; 118 118 return parent; … … 689 689 { 690 690 // 'td' in 'thead' is actually <th>. 691 if ( element. nearestParent( 'thead') )691 if ( element.getAncestor( 'thead') ) 692 692 element.name = 'th'; 693 693 },
Note: See TracChangeset
for help on using the changeset viewer.
