Ticket #1359: 1359.patch

File 1359.patch, 1.1 KB (added by Frederico Caldeira Knabben, 17 years ago)

Patch to minimize the visual effect of the selection

  • editor/_source/classes/fckdomrange_ie.js

     
    119119                // It is also needed when placing the selection right after an inline
    120120                // element to avoid the selection moving inside of it.
    121121                dummySpan = this.Window.document.createElement( 'span' ) ;
    122                 dummySpan.innerHTML = ' ' ;
     122                dummySpan.innerHTML = '​' ;       // Zero Width Space (U+200B)
    123123                eStartMarker.parentNode.insertBefore( dummySpan, eStartMarker ) ;
    124124               
    125125                if ( bIsStartMakerAlone )
     
    127127                        // To expand empty blocks or line spaces after <br>, we need
    128128                        // instead to have a &nbsp;, which will be later deleted using the
    129129                        // selection.
    130                         eStartMarker.parentNode.insertBefore( this.Window.document.createTextNode( '\u00a0' ), eStartMarker ) ;
     130                        eStartMarker.parentNode.insertBefore( this.Window.document.createTextNode( '\u200b' ), eStartMarker ) ;
    131131                }
    132132        }
    133133       
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy