Ticket #4172: 4172_2.patch

File 4172_2.patch, 1.8 KB (added by Garry Yao, 15 years ago)
  • _source/plugins/htmldataprocessor/plugin.js

     
    66(function()
    77{
    88        // Regex to scan for   at the end of blocks, which are actually placeholders.
    9         var tailNbspRegex = /^[\t\r\n ]* $/;
     9        // Safari transforms the   to \xa0. (#4172)
     10        var tailNbspRegex = /^[\t\r\n ]*(?: |\xa0)$/;
    1011
    1112        var protectedSourceMarker = '{cke_protected}';
    1213
  • CHANGES.html

     
    224224                <li><a href="http://dev.fckeditor.net/ticket/4164">#4164</a> : Now it is possible to paste text
    225225                        in Source mode even if forcePasteAsPlainText = true.</li>
    226226                <li><a href="http://dev.fckeditor.net/ticket/4129">#4129</a> : [FF]Unable to remove list with Ctrl-A.</li>
     227                <li><a href="http://dev.fckeditor.net/ticket/4172">#4172</a> : [Safari] The trailing
     228                        &lt;br&gt; was not been always added to blank lines ending with &amp;nbsp;.</li>
    227229        </ul>
    228230        <h3>
    229231                CKEditor 3.0 RC</h3>
  • _source/tests/plugins/styles/styles.html

     
    578578                        style.applyToRange( range );
    579579
    580580                        var result = getInnerHtmlParsed( element );
     581
     582                        if ( CKEDITOR.env.webkit )
     583                                result = result.replace( '\xa0', '&nbsp' );
     584
    581585                        assert.areSame( '<p>&nbsp;paragraph1&nbsp; paragraph1<br />paragraph2</p><p>&nbsp;para&nbsp;&nbsp; graph3</p>',
    582586                                         result );
    583587                },
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy