Ticket #1664: 1664.patch
File 1664.patch, 2.1 KB (added by , 17 years ago) |
---|
-
_whatsnew.html
57 57 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/339">#339</a>] [<a 58 58 target="_blank" href="http://dev.fckeditor.net/ticket/681">#681</a>] The SpellerPages 59 59 spell checker will now completely ignore the presence of HTML tags in the text.</li> 60 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1664">#1664</a>] The ENTER 61 key will not anymore swap the order of the tags when hit at the end of paragraphs.</li> 60 62 </ul> 61 63 <p> 62 64 <a href="_whatsnew_history.html">See previous versions history</a> -
editor/_source/classes/fckenterkey.js
461 461 var elementPath = oSplitInfo.ElementPath ; 462 462 if ( elementPath ) 463 463 { 464 var eFocusElement = eNewBlock ;465 464 for ( var i = 0, len = elementPath.Elements.length ; i < len ; i++ ) 466 465 { 467 466 var element = elementPath.Elements[i] ; 468 467 469 468 if ( element == elementPath.Block || element == elementPath.BlockLimit ) 470 469 break ; 471 470 472 471 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 } 474 477 } 475 478 } 476 479 -
editor/_source/internals/fckdomtools.js
23 23 24 24 var FCKDomTools = 25 25 { 26 /** 27 * Move all child nodes from one node to another. 28 */ 26 29 MoveChildren : function( source, target, toTargetStart ) 27 30 { 28 31 if ( source == target )