Changeset 834

Show
Ignore:
Timestamp:
2007-09-17 08:11:54 (15 months ago)
Author:
martinkou
Message:

Added skeletal implementation of the indent and outdent commands.
Added save snapshot operation before applying changes in the justify commands.

Location:
FCKeditor/trunk
Files:
1 added
7 modified

Legend:

Unmodified
Added
Removed
  • FCKeditor/trunk/editor/fckeditor.html

    r822 r834  
    119119LoadScript( '_source/commandclasses/fcklistcommands.js' ) ; 
    120120LoadScript( '_source/commandclasses/fckjustifycommands.js' ) ; 
     121LoadScript( '_source/commandclasses/fckindentcommands.js' ) ; 
    121122LoadScript( '_source/commandclasses/fckcorestylecommand.js' ) ; 
    122123LoadScript( '_source/commandclasses/fckremoveformatcommand.js' ) ; 
  • FCKeditor/trunk/editor/_source/classes/fckdomrange.js

    r824 r834  
    664664 
    665665                                        // In Gecko, the last child node must be a bogus <br>. 
    666                                         if ( FCKBrowserInfo.IsGecko ) 
     666                                        // Note: bogus <br> added under <ul> or <ol> would cause lists to be incorrectly rendered. 
     667                                        if ( FCKBrowserInfo.IsGecko && 
     668                                                        ! eStartBlock.nodeName.IEquals( ['ul', 'ol'] ) ) 
    667669                                                FCKTools.AppendBogusBr( eStartBlock ) ; 
    668670                                } 
  • FCKeditor/trunk/editor/_source/commandclasses/fckjustifycommands.js

    r833 r834  
    8383        Execute : function() 
    8484        { 
     85                // Save an undo snapshot before doing anything. 
     86                FCKUndo.SaveUndoStep() ; 
     87                 
    8588                var range = new FCKDomRange( FCK.EditorWindow ) ; 
    8689                range.MoveToSelection() ; 
  • FCKeditor/trunk/editor/_source/internals/fckcommands.js

    r804 r834  
    9393                case 'JustifyRight'     : oCommand = new FCKJustifyCommand( 'right' ) ; break ; 
    9494                case 'JustifyFull'      : oCommand = new FCKJustifyCommand( 'justify' ) ; break ; 
     95                case 'Indent'   : oCommand = new FCKIndentCommand( 'indent', FCKConfig.IndentLength ) ; break ; 
     96                case 'Outdent'  : oCommand = new FCKIndentCommand( 'outdent', FCKConfig.IndentLength * -1 ) ; break ; 
    9597 
    9698                case 'TableInsertRowAfter'              : oCommand = new FCKTableCommand('TableInsertRowAfter') ; break ; 
  • FCKeditor/trunk/editor/_source/internals/fck.js

    r774 r834  
    854854                return ; 
    855855 
     856        if ( FCKConfig.Debug ) 
     857                FCKDebug._GetWindow() ; 
     858 
    856859        FCK.SetStatus( FCK_STATUS_ACTIVE ) ; 
    857860} 
  • FCKeditor/trunk/fckconfig.js

    r829 r834  
    6161 
    6262// The distance of an indentation step, in pixels. 
    63 FCKConfig.IndentLength = 25 ; 
     63FCKConfig.IndentLength = 40 ; 
    6464 
    6565FCKConfig.ProcessHTMLEntities   = true ; 
  • FCKeditor/trunk/fckpackager.xml

    r822 r834  
    129129                <File path="editor/_source/commandclasses/fcklistcommands.js" /> 
    130130                <File path="editor/_source/commandclasses/fckjustifycommands.js" /> 
     131                <File path="editor/_source/commandclasses/fckindentcommands.js" /> 
    131132                <File path="editor/_source/commandclasses/fckcorestylecommand.js" /> 
    132133                <File path="editor/_source/commandclasses/fckremoveformatcommand.js" /> 
     
    222223                <File path="editor/_source/commandclasses/fcklistcommands.js" /> 
    223224                <File path="editor/_source/commandclasses/fckjustifycommands.js" /> 
     225                <File path="editor/_source/commandclasses/fckindentcommands.js" /> 
    224226                <File path="editor/_source/commandclasses/fckcorestylecommand.js" /> 
    225227                <File path="editor/_source/commandclasses/fckremoveformatcommand.js" />