Ticket #3665: 3665.patch
File 3665.patch, 1.0 KB (added by , 14 years ago) |
---|
-
_source/core/htmlparser/fragment.js
116 116 currentNode = savedCurrent; 117 117 } 118 118 119 // Rtrim empty spaces on block end boundary. (#3585)120 119 if ( element._.isBlockLike ) 121 120 { 122 123 121 var length = element.children.length, 124 122 lastChild = element.children[ length - 1 ], 125 123 text; 126 124 if ( lastChild && lastChild.type == CKEDITOR.NODE_TEXT ) 127 125 { 128 if ( !( text = CKEDITOR.tools.rtrim( lastChild.value ) ) ) 126 // 1. IE incorrectly report ' ' inside empty block, 127 // trim it here. 128 // 2. Rtrim empty spaces on block end boundary. (#3585) 129 if ( CKEDITOR.env.ie && length == 1 && lastChild.value == ' ' 130 || !( text = CKEDITOR.tools.rtrim( lastChild.value ) ) ) 129 131 element.children.length = length -1; 130 132 else 131 133 lastChild.value = text;