Ticket #3883: 3883.patch

File 3883.patch, 1.4 KB (added by Garry Yao, 15 years ago)
  • _source/core/dom/range.js

     
    300300        // text node and non-empty elements unless it's being bookmark text.
    301301        function elementBoundaryEval( node )
    302302        {
    303                 // Reject any text node unless it's being bookmark.
     303                // Reject any text node unless it's being bookmark
     304                // OR it's spaces. (#3883)
    304305                return node.type != CKEDITOR.NODE_TEXT
    305                        && node.getName() in CKEDITOR.dtd.$removeEmpty
    306                            || node.getParent().hasAttribute( '_fck_bookmark' );
     306                            && node.getName() in CKEDITOR.dtd.$removeEmpty
     307                            || !CKEDITOR.tools.trim( node.getText() )
     308                            || node.getParent().hasAttribute( '_fck_bookmark' );
    307309        }
    308310
    309311        CKEDITOR.dom.range.prototype =
  • CHANGES.html

     
    9292                        source code.</li>
    9393                <li><a href="http://dev.fckeditor.net/ticket/3639">#3639</a> : Button size was inconsistent.</li>
    9494                <li><a href="http://dev.fckeditor.net/ticket/3874">#3874</a> : Paste as plain text in Safari loosing lines.</li>
     95                <li><a href="http://dev.fckeditor.net/ticket/3883">#3883</a> : Remove inline style logic incorrect on Firefox2.</li>
    9596        </ul>
    9697        <h3>
    9798                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy