[ Index ] |
|
Code source de vtiger CRM 5.0.2 |
1 /* 2 * FCKeditor - The text editor for internet 3 * Copyright (C) 2003-2005 Frederico Caldeira Knabben 4 * 5 * Licensed under the terms of the GNU Lesser General Public License: 6 * http://www.opensource.org/licenses/lgpl-license.php 7 * 8 * For further information visit: 9 * http://www.fckeditor.net/ 10 * 11 * "Support Open Source software. What about a donation today?" 12 * 13 * File Name: fck_last.js 14 * These are the last script lines executed in the editor loading process. 15 * 16 * File Authors: 17 * Frederico Caldeira Knabben (fredck@fckeditor.net) 18 */ 19 20 // This is the last file loaded to complete the editor initialization and activation 21 22 // Just check if the document direction has been correctly applied (at fck_onload.js). 23 if ( FCKLang && window.document.dir.toLowerCase() != FCKLang.Dir.toLowerCase() ) 24 window.document.dir = FCKLang.Dir ; 25 26 // Activate pasting operations. 27 if ( FCKConfig.ForcePasteAsPlainText || FCKConfig.AutoDetectPasteFromWord ) 28 FCK.Events.AttachEvent( "OnPaste", FCK.Paste ) ; 29 30 // START iCM Modifications 31 // Override default ENTER key handler for Gecko/Mozilla so 32 // it acts more like IE browsers. 33 /* 34 if ( FCKBrowserInfo.IsGecko && !FCKConfig.UseBROnCarriageReturn ) 35 { 36 FCK.Events.AttachEvent( "OnEnter", FCK.Enter ) ; 37 FCK.Events.AttachEvent( "OnBackSpace", FCK.BackSpace ) ; 38 } 39 */ 40 // END iCM Modifications 41 42 // Load Plugins. 43 if ( FCKPlugins.ItemsCount > 0 ) 44 { 45 FCKScriptLoader.OnEmpty = CompleteLoading ; 46 FCKPlugins.Load() ; 47 } 48 else 49 CompleteLoading() ; 50 51 function CompleteLoading() 52 { 53 // Load the Toolbar 54 FCKToolbarSet.Name = FCKURLParams['Toolbar'] || 'Default' ; 55 FCKToolbarSet.Load( FCKToolbarSet.Name ) ; 56 FCKToolbarSet.Restart() ; 57 58 FCK.AttachToOnSelectionChange( FCKToolbarSet.RefreshItemsState ) ; 59 //FCK.AttachToOnSelectionChange( FCKSelection._Reset ) ; 60 61 FCKTools.DisableSelection( document.body ) ; 62 63 FCK.SetStatus( FCK_STATUS_COMPLETE ) ; 64 65 // Call the special "FCKeditor_OnComplete" function that should be present in 66 // the HTML page where the editor is located. 67 if ( typeof( window.parent.FCKeditor_OnComplete ) == 'function' ) 68 window.parent.FCKeditor_OnComplete( FCK ) ; 69 }
titre
Description
Corps
titre
Description
Corps
titre
Description
Corps
titre
Corps
Généré le : Sun Feb 25 10:22:19 2007 | par Balluche grâce à PHPXref 0.7 |