Changeset 1176

Show
Ignore:
Timestamp:
2007-12-05 00:00:33 (10 months ago)
Author:
fredck
Message:

Fixed #1607 (Part 2) : Removed the styleWithCSS/useCSS and insertBrOnReturn from the code.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/_source/classes/fckeditingarea.js

    r1170 r1176  
    209209                        oDoc.designMode = 'on' ; 
    210210 
    211                         // Tell Gecko to use or not the <SPAN> tag for the bold, italic and underline. 
    212                         try 
    213                         { 
    214                                 oDoc.execCommand( 'styleWithCSS', false, false ) ; 
    215                         } 
    216                         catch (e) 
    217                         { 
    218                                 // As evidenced here, useCSS is deprecated in favor of styleWithCSS: 
    219                                 // http://www.mozilla.org/editor/midas-spec.html 
    220                                 oDoc.execCommand( 'useCSS', false, true ) ; 
    221                         } 
    222  
    223                         // Analyzing Firefox 1.5 source code, it seams that there is support for a 
    224                         // "insertBrOnReturn" command. Applying it gives no error, but it doesn't 
    225                         // gives the same behavior that you have with IE. It works only if you are 
    226                         // already inside a paragraph and it doesn't render correctly in the first enter. 
    227                         // oDoc.execCommand( 'insertBrOnReturn', false, false ) ; 
    228  
    229211                        // Tell Gecko (Firefox 1.5+) to enable or not live resizing of objects (by Alfonso Martinez) 
    230212                        oDoc.execCommand( 'enableObjectResizing', false, !FCKConfig.DisableObjectResizing ) ;