Ticket #3046: 3046.patch
File 3046.patch, 1.6 KB (added by , 14 years ago) |
---|
-
_source/plugins/list/plugin.js
121 121 && currentListItem.getLast().type == CKEDITOR.NODE_ELEMENT 122 122 && currentListItem.getLast().getAttribute( 'type' ) == '_moz' ) 123 123 currentListItem.getLast().remove(); 124 currentListItem.append ( doc.createElement( 'br' ));124 currentListItem.appendBogusBr(); 125 125 } 126 126 127 127 if ( currentListItem.getName() == paragraphMode && currentListItem.$.firstChild ) … … 138 138 139 139 var currentListItemName = currentListItem.$.nodeName.toLowerCase(); 140 140 if ( !CKEDITOR.env.ie && currentListItemName == 'div' || currentListItemName == 'p' ) 141 currentListItem.append ( doc.createElement( 'br' ));141 currentListItem.appendBogusBr(); 142 142 retval.append( currentListItem ); 143 143 rootNode = null; 144 144 currentIndex++; -
_source/core/dom/element.js
1207 1207 this.removeClass( 'cke_disabled' ); 1208 1208 break; 1209 1209 } 1210 }, 1211 1212 appendBogusBr : function() 1213 { 1214 var nodes = this.getElementsByTag( 'br' ); 1215 1216 // If there's any BR tag in the block tag, it means the block tag is already 1217 // visible, and thus there's no need to expand it. 1218 if ( nodes.count() > 0 ) 1219 return; 1220 1221 this.getDocument().createElement( 'br' ).appendTo( this ); 1210 1222 } 1211 1223 });