Ticket #309: 309_2.patch

File 309_2.patch, 1.3 kB (added by fredck, 8 months ago)
  • _whatsnew.html

     
    4747                        several "strict warning" messages in Firefox when running FCKeditor.</li> 
    4848                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/1522">#1522</a>] The ENTER 
    4949                        key will now work properly in IE with the cursor at the start of a formatted block.</li> 
     50                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/309">#309</a>] The  
     51                        ENTER key will not anymore break &lt;button&gt; elements at the beginning of  
     52                        paragraphs.</li> 
    5053        </ul> 
    5154        <p> 
    5255                <a href="_whatsnew_history.html">See previous versions history</a> 
  • editor/_source/classes/fckdomrange.js

     
    151151        { 
    152152                var child ; 
    153153 
    154                 while ( ( child = targetElement.firstChild ) && child.nodeType == 1 && FCKListsLib.EmptyElements[ child.nodeName.toLowerCase() ] == null ) 
     154                while ( ( child = targetElement.firstChild ) && child.nodeType == 1 && FCKListsLib.InlineNonEmptyElements[ child.nodeName.toLowerCase() ] ) 
    155155                        targetElement = child ; 
    156156 
    157157                this.MoveToElementStart( targetElement ) ;