Ticket #5911: 5911.patch
File 5911.patch, 1.1 KB (added by , 14 years ago) |
---|
-
_source/plugins/list/plugin.js
280 280 281 281 // Insert the list to the DOM tree. 282 282 var insertAnchor = listContents[ listContents.length - 1 ].getNext(), 283 listNode = doc.createElement( this.type ); 283 listNode = doc.createElement( this.type ), 284 dir; 284 285 285 286 listsCreated.push( listNode ); 286 287 while ( listContents.length ) … … 293 294 contentBlock.appendTo( listItem ); 294 295 else 295 296 { 297 if ( contentBlock.hasAttribute( 'dir' ) ) 298 { 299 dir = dir || contentBlock.getAttribute( 'dir' ); 300 contentBlock.removeAttribute( 'dir' ); 301 } 296 302 contentBlock.copyAttributes( listItem ); 297 303 contentBlock.moveChildren( listItem ); 298 304 contentBlock.remove(); … … 304 310 if ( !CKEDITOR.env.ie ) 305 311 listItem.appendBogus(); 306 312 } 313 314 if ( dir ) 315 listNode.setAttribute( 'dir', dir ); 316 307 317 if ( insertAnchor ) 308 318 listNode.insertBefore( insertAnchor ); 309 319 else