Changeset 2106
- Timestamp:
- 2008-06-23 11:24:09 (5 months ago)
- Location:
- FCKeditor/trunk
- Files:
-
- 3 modified
-
editor/_source/classes/fckdomrange.js (modified) (1 diff)
-
editor/_source/internals/fck.js (modified) (2 diffs)
-
_whatsnew.html (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
FCKeditor/trunk/editor/_source/classes/fckdomrange.js
r1928 r2106 869 869 FCKDomTools.TrimNode( oFixedBlock ) ; 870 870 871 // If the fixed block is empty (not counting bookmark nodes) 872 // Add a <br /> inside to expand it. 873 if ( FCKDomTools.CheckIsEmptyElement(oFixedBlock, function( element ) { return element.getAttribute('_fck_bookmark') != 'true' ; } ) 874 && FCKBrowserInfo.IsGeckoLike ) 875 FCKTools.AppendBogusBr( oFixedBlock ) ; 876 871 877 // Insert the fixed block into the DOM. 872 878 this.InsertNode( oFixedBlock ) ; -
FCKeditor/trunk/editor/_source/internals/fck.js
r1984 r2106 674 674 var range = new FCKDomRange( this.EditorWindow ) ; 675 675 676 // Move to the selection and delete it. 677 range.MoveToSelection() ; 678 range.DeleteContents() ; 679 676 680 if ( FCKListsLib.BlockElements[ elementName ] != null ) 677 681 { 678 range.SplitBlock() ; 682 if ( range.StartBlock ) 683 { 684 if ( range.CheckStartOfBlock() ) 685 range.MoveToPosition( range.StartBlock, 3 ) ; 686 else if ( range.CheckEndOfBlock() ) 687 range.MoveToPosition( range.StartBlock, 4 ) ; 688 else 689 range.SplitBlock() ; 690 } 691 679 692 range.InsertNode( element ) ; 680 693 … … 706 719 else 707 720 { 708 // Delete the current selection and insert the node. 709 range.MoveToSelection() ; 710 range.DeleteContents() ; 721 // Insert the node. 711 722 range.InsertNode( element ) ; 712 723 -
FCKeditor/trunk/_whatsnew.html
r2097 r2106 65 65 with querystring parameters were not being accepted for CSS values in the configuration 66 66 file (like EditorAreaCSS).</li> 67 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2287">#2287</a>] On some 68 specific cases, with Firefox 2, some extra spacing was appearing in the final HTML 69 on posting, if inserting two successive tables.</li> 70 <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2287">#2287</a>] Block 71 elements (like tables or horizontal rules) will be inserted correctly now when the 72 cursor is at the start or the end of blocks. No extra paragraphs will be included 73 in this operation.</li> 67 74 </ul> 68 75 <p>