Ticket #1537: 1537.patch
File 1537.patch, 775 bytes (added by , 14 years ago) |
---|
-
editor/_source/internals/fck_ie.js
172 172 oSel.createRange().pasteHTML( html ) ; 173 173 174 174 // Remove the fake node 175 FCK.EditorDocument.getElementById('__fakeFCKRemove__').removeNode( true ) ; 175 var fake = FCK.EditorDocument.getElementById('__fakeFCKRemove__') ; 176 // If the span is the only child of a node (so the inserted HTML is beyond that), 177 // remove also that parent that isn't needed. #1537 178 if (fake.parentNode.childNodes.length == 1) 179 fake = fake.parentNode ; 180 fake.removeNode( true ) ; 176 181 177 182 FCKDocumentProcessor.Process( FCK.EditorDocument ) ; 178 183