Changeset 1219 for FCKeditor/trunk


Ignore:
Timestamp:
12/18/07 11:36:34 (8 years ago)
Author:
fredck
Message:

Fixed #1664 : The ENTER key will not any more swap the order of the tags when hit at the end of paragraphs.

Location:
FCKeditor/trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/_whatsnew.html

    r1218 r1219  
    6262                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1603">#1603</a>] Certain
    6363                        specific markup was making FCKeditor entering in a loop, blocking its execution.</li>
     64                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1664">#1664</a>] The ENTER
     65                        key will not any more swap the order of the tags when hit at the end of paragraphs.</li>
    6466        </ul>
    6567        <p>
  • FCKeditor/trunk/editor/_source/classes/fckenterkey.js

    r1152 r1219  
    462462                        if ( elementPath )
    463463                        {
    464                                 var eFocusElement = eNewBlock ;
    465464                                for ( var i = 0, len = elementPath.Elements.length ; i < len ; i++ )
    466465                                {
     
    469468                                        if ( element == elementPath.Block || element == elementPath.BlockLimit )
    470469                                                break ;
    471 
     470                                       
    472471                                        if ( FCKListsLib.InlineChildReqElements[ element.nodeName.toLowerCase() ] )
    473                                                 eFocusElement = eFocusElement.appendChild( FCKDomTools.CloneElement( element ) ) ;
     472                                        {
     473                                                element = FCKDomTools.CloneElement( element ) ;
     474                                                FCKDomTools.MoveChildren( eNewBlock, element ) ;
     475                                                eNewBlock.appendChild( element ) ;
     476                                        }
    474477                                }
    475478                        }
  • FCKeditor/trunk/editor/_source/internals/fckdomtools.js

    r1152 r1219  
    2424var FCKDomTools =
    2525{
     26        /**
     27         * Move all child nodes from one node to another.
     28         */
    2629        MoveChildren : function( source, target, toTargetStart )
    2730        {
     
    979982} ;
    980983
     984
Note: See TracChangeset for help on using the changeset viewer.
© 2003 – 2015 CKSource – Frederico Knabben. All rights reserved. | Terms of use | Privacy policy