Ticket #593: 593_Proposal.patch
File 593_Proposal.patch, 2.2 KB (added by , 16 years ago) |
---|
-
editor/_source/internals/fck.js
114 114 this.EditingArea = new FCKEditingArea( document.getElementById( 'xEditingArea' ) ) ; 115 115 this.EditingArea.FFSpellChecker = FCKConfig.FirefoxSpellChecker ; 116 116 117 FCK.EditMode = FCKConfig.StartupMode ; 118 117 119 // Set the editor's startup contents. 118 120 this.SetData( this.GetLinkedFieldValue(), true ) ; 119 121 … … 322 324 323 325 OnAfterSetHTML : function() 324 326 { 325 FCKDocumentProcessor.Process( FCK.EditorDocument ) ; 326 FCKUndo.SaveUndoStep() ; 327 if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG ) 328 { 329 FCKDocumentProcessor.Process( FCK.EditorDocument ) ; 330 FCKUndo.SaveUndoStep() ; 331 } 327 332 333 // Check if it is not a startup call, otherwise complete the startup. 334 if ( FCK.Status != FCK_STATUS_NOTLOADED ) 335 FCK.SetStatus( FCK_STATUS_ACTIVE ) ; 336 328 337 FCK.Events.FireEvent( 'OnSelectionChange' ) ; 329 338 FCK.Events.FireEvent( 'OnAfterSetHTML' ) ; 330 339 }, … … 478 487 479 488 this.EditingArea.Textarea.focus() ; 480 489 481 FCK. Events.FireEvent( 'OnAfterSetHTML') ;490 FCK.OnAfterSetHTML() ; 482 491 } 483 492 484 493 if ( FCKBrowserInfo.IsGecko ) … … 960 969 961 970 // Restore show blocks status. 962 971 FCKCommands.GetCommand( 'ShowBlocks' ).RestoreState() ; 963 964 // Check if it is not a startup call, otherwise complete the startup.965 if ( FCK.Status != FCK_STATUS_NOTLOADED )966 return ;967 968 FCK.SetStatus( FCK_STATUS_ACTIVE ) ;969 972 } 970 973 971 974 function _FCK_GetEditorAreaStyleTags() -
fckconfig.js
73 73 FCKConfig.FormatOutput = true ; 74 74 FCKConfig.FormatIndentator = ' ' ; 75 75 76 FCKConfig.StartupFocus = false ; 76 FCKConfig.StartupMode = FCK_EDITMODE_WYSIWYG ; // FCK_EDITMODE_WYSIWYG = 0 || FCK_EDITMODE_SOURCE = 1 77 FCKConfig.StartupFocus = false ; 77 78 FCKConfig.ForcePasteAsPlainText = false ; 78 79 FCKConfig.AutoDetectPasteFromWord = true ; // IE only. 79 80 FCKConfig.ShowDropDialog = true ;