Ticket #2390: 2390.patch

File 2390.patch, 1.5 KB (added by martinkou, 20 months ago)
  • _whatsnew.html

     
    103103                        of FCKeditor, in IE.</li> 
    104104                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2368">#2368</a>] Fixed broken protect  
    105105                        source logic for comments in IE.</li> 
     106                <li>[<a target="_blank" href="http://dev.fckeditor.net/ticket/2390">#2390</a>] Fixed the issue where 
     107                        indent styles in JavaScript-generated &lt;p&gt; blocks are erased in IE.</li> 
    106108        </ul> 
    107109        <p> 
    108110                <a href="_whatsnew_history.html">See previous versions history</a></p> 
  • editor/_source/internals/fckxhtml_ie.js

     
    9393        return node ; 
    9494} 
    9595 
     96// IE automatically loses the style attribute in JavaScript-created <p> tags. (Bug #2390) 
     97FCKXHtml.TagProcessors['p'] = function( node, htmlNode ) 
     98{ 
     99        if ( htmlNode.style.cssText.length > 0 ) 
     100        { 
     101                var sAttValue = htmlNode.style.cssText.replace( FCKRegexLib.StyleProperties, FCKTools.ToLowerCase ) ; 
     102                FCKXHtml._AppendAttribute( node, 'style', sAttValue ) ; 
     103        } 
     104 
     105        node = FCKXHtml._AppendChildNodes( node, htmlNode, true ) ; 
     106 
     107        return node ; 
     108} 
     109 
    96110// IE automatically changes <FONT> tags to <FONT size=+0>. 
    97111FCKXHtml.TagProcessors['font'] = function( node, htmlNode ) 
    98112{