Ticket #3934: 3934.patch

File 3934.patch, 1.9 KB (added by tobiasz.cudnik, 6 years ago)
  • _source/plugins/enterkey/plugin.js

     
    258258
    259259                        range.insertNode( lineBreak );
    260260
     261                        // Fix to show new line for Gecko. (#3934)
     262                        if ( CKEDITOR.env.gecko && !isPre )
     263                                doc.createText( CKEDITOR.env.version < 10900 ? '\u2007' : '\ufeff' ).insertAfter( lineBreak );
     264
    261265                        // A text node is required by Gecko only to make the cursor blink.
    262266                        // We need some text inside of it, so the bogus <br> is properly
    263267                        // created.
    264                         if ( !CKEDITOR.env.ie )
     268                        if ( !CKEDITOR.env.ie && !CKEDITOR.env.gecko )
    265269                                doc.createText( '\ufeff' ).insertAfter( lineBreak );
    266270
    267271                        // If we are at the end of a block, we must be sure the bogus node is available in that block.
     
    270274
    271275                        // Now we can remove the text node contents, so the caret doesn't
    272276                        // stop on it.
    273                         if ( !CKEDITOR.env.ie )
     277                        if ( !CKEDITOR.env.ie && !CKEDITOR.env.gecko )
    274278                                lineBreak.getNext().$.nodeValue = '';
    275279                        // IE has different behavior regarding position.
    276280                        if ( CKEDITOR.env.ie )
  • CHANGES.html

     
    126126                <li><a href="http://dev.fckeditor.net/ticket/3839">#3839</a> : Update Scayt plugin to reflect the latest change from SpellChecker.net.</li>
    127127                <li><a href="http://dev.fckeditor.net/ticket/3742">#3742</a> : Fixed wrong dialog layout for dialogs without tab bar in IE RTL mode .</li>
    128128                <li><a href="http://dev.fckeditor.net/ticket/3671">#3671</a> : Fixed body fixing should be applied to the real type under fake elements.</li>
     129                <li><a href="http://dev.fckeditor.net/ticket/3934">#3934</a> : Fixed new line collapsed in enterMode=BR.</li>
    129130        </ul>
    130131        <h3>
    131132                CKEditor 3.0 RC</h3>
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy