Ticket #3994: 3994.patch

File 3994.patch, 1.8 KB (added by Garry Yao, 14 years ago)
  • _source/plugins/wysiwygarea/plugin.js

     
    177177                                          && !( nextElement.getName() in nonExitableElementNames ) )
    178178                                enterBlock = nextElement;
    179179
     180                        // Not all blocks are editable, e.g. <hr />, further checking it.(#3994)
    180181                        if( ( !count
    181182                                  || ( firstChild = children.getItem( 0 ) ) && firstChild.is && firstChild.is( 'br' ) )
    182                                 && enterBlock )
     183                                && enterBlock
     184                                && range.moveToElementEditStart( enterBlock ) )
    183185                        {
    184186                                fixedBlock.remove();
    185                                 range.moveToElementEditStart( enterBlock );
    186187                                range.select();
    187188                        }
    188189                }
  • _source/core/dom/range.js

     
    16021602                        }
    16031603
    16041604                        if ( editableElement )
    1605                                 this.moveToPosition( editableElement, CKEDITOR.POSITION_AFTER_START );
     1605                        {
     1606                                this.moveToPosition(editableElement, CKEDITOR.POSITION_AFTER_START);
     1607                                return true;
     1608                        }
     1609                        else
     1610                                return false;
    16061611                },
    16071612
    16081613                getTouchedStartNode : function()
  • CHANGES.html

     
    159159                        left around.</li>
    160160                <li><a href="http://dev.fckeditor.net/ticket/3992">#3992</a> : Fixed the
    161161                        ckeditor2.html test case.</li>
     162                <li><a href="http://dev.fckeditor.net/ticket/3994">#3994</a> : Insert horizontal line at end of document cause error.</li>
    162163        </ul>
    163164        <h3>
    164165                CKEditor 3.0 RC</h3>
© 2003 – 2022, CKSource sp. z o.o. sp.k. All rights reserved. | Terms of use | Privacy policy