Lines Matching refs:FCK

26 var FCK =  class
77 var oKeystrokeHandler = FCK.KeystrokeHandler = new FCKKeystrokeHandler() ;
111 FCK.EditingArea.Focus() ;
127 FCK.Focus() ;
208 if ( FCK.EditMode == FCK_EDITMODE_SOURCE )
209 return FCK.EditingArea.Textarea.value ;
213 var oDoc = FCK.EditorDocument ;
220 var data = FCK.DataProcessor.ConvertToDataFormat(
227 data = FCK.ProtectEventsRestore( data ) ;
234 if ( FCK.DocTypeDeclaration && FCK.DocTypeDeclaration.length > 0 )
235 data = FCK.DocTypeDeclaration + '\n' + data ;
237 if ( FCK.XmlDeclaration && FCK.XmlDeclaration.length > 0 )
238 data = FCK.XmlDeclaration + '\n' + data ;
246 var value = FCK.GetXHTML( FCKConfig.FormatOutput ) ;
251 FCK.LinkedField.value = value ;
252 FCK.Events.FireEvent( 'OnAfterLinkedFieldUpdate' ) ;
259 var oHandler = FCK.RegisteredDoubleClickHandlers[ element.tagName ] ;
267 FCK.RegisteredDoubleClickHandlers[ tag.toUpperCase() ] = handlerFunction ;
272 FCKDocumentProcessor.Process( FCK.EditorDocument ) ;
275 FCK.Events.FireEvent( 'OnSelectionChange' ) ;
276 FCK.Events.FireEvent( 'OnAfterSetHTML' ) ;
341 this.EditingArea.Mode = FCK.EditMode ;
343 if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
353 data = FCK.DataProcessor.ConvertToHtml( data ) ;
359 data = FCK.ProtectEvents( data ) ;
362 data = FCK.ProtectUrls( data ) ;
363 data = FCK.ProtectTags( data ) ;
368 if ( FCK.TempBaseTag.length > 0 && !FCKRegexLib.HasBaseTag.test( data ) )
369 data = data.replace( FCKRegexLib.HeadOpener, '$&' + FCK.TempBaseTag ) ;
378 sHeadExtra += FCK._GetBehaviorsStyle() ;
398 FCK.EditorWindow = null ;
399 FCK.EditorDocument = null ;
409 FCK.EnterKeyHandler = null ;
415 FCK.KeystrokeHandler.AttachToElement( this.EditingArea.Textarea ) ;
419 FCK.Events.FireEvent( 'OnAfterSetHTML' ) ;
439 if ( !noRedirect && FCK.RedirectNamedCommands[ commandName ] != null )
440 FCK.ExecuteRedirectedNamedCommand( commandName, commandParameter ) ;
443 FCK.Focus() ;
444 FCK.EditorDocument.execCommand( commandName, false, commandParameter ) ;
445 FCK.Events.FireEvent( 'OnSelectionChange' ) ;
458 if ( FCKBrowserInfo.IsSafari && FCK.EditorWindow && commandName.IEquals( 'Paste' ) )
461 if ( !FCK.EditorDocument.queryCommandEnabled( commandName ) )
465 … return FCK.EditorDocument.queryCommandState( commandName ) ? FCK_TRISTATE_ON : FCK_TRISTATE_OFF ;
477 var eState = FCK.GetNamedCommandState( commandName ) ;
494 if ( FCK.Status != FCK_STATUS_COMPLETE || !FCK.Events.FireEvent( 'OnPaste' ) )
498 return _callListenersOnly || FCK._ExecPaste() ;
517 if ( FCK.TempBaseTag.length > 0 )
518 sHTML = FCK.TempBaseTag + FCK.GetXHTML() ;
520 sHTML = FCK.GetXHTML() ;
528 FCK.TempBaseTag +
532 FCK.GetXHTML() +
542 var bIsWysiwyg = ( FCK.EditMode == FCK_EDITMODE_WYSIWYG ) ;
545 var bIsDirty = FCK.IsDirty() ;
556 sHtml = FCK.GetXHTML( FCKConfig.FormatSource ) ;
564 FCK.EditMode = bIsWysiwyg ? FCK_EDITMODE_SOURCE : FCK_EDITMODE_WYSIWYG ;
566 FCK.SetData( sHtml, !bIsDirty ) ;
569 FCK.Focus() ;
572 FCKTools.RunFunction( FCK.ToolbarSet.RefreshModeState, FCK.ToolbarSet ) ;
664 evt = FCK.EditorWindow.event ;
665 if ( FCK.EditorWindow )
667 …if ( !FCK._IsFunctionKey(evt.keyCode) // do not capture function key presses, like arrow keys or s…
670 FCK._KeyDownUndo() ;
681 FCK.Events.FireEvent( "OnSelectionChange" ) ;
703 if ( keystrokeValue == 9 && FCK.EditMode != FCK_EDITMODE_WYSIWYG )
708 if ( range.parentElement() != FCK.EditingArea.Textarea )
716 var el = FCK.EditingArea.Textarea ;
736 FCK.Events = new FCKEvents( FCK ) ;
739 FCK.GetHTML = FCK.GetXHTML = FCK.GetData ;
742 FCK.SetHTML = FCK.SetData ;
745 FCK.InsertElementAndGetIt = FCK.CreateElement = FCK.InsertElement ;
771 FCK.MouseDownFlag = true ;
773 FCK.MouseDownFlag = false ;
775 FCK.Events.FireEvent( 'OnMouseMove', evt ) ;
782 FCKDomTools.EnforcePaddingNode( FCK.EditorDocument, FCKConfig.EnterMode ) ;
786 var sel = FCK.EditorWindow.getSelection() ;
790 …if ( range.collapsed && range.startContainer == FCK.EditorDocument.body && range.startOffset == 0 )
804 FCK.EditorWindow = FCK.EditingArea.Window ;
805 FCK.EditorDocument = FCK.EditingArea.Document ;
807 FCK.InitializeBehaviors() ;
808 FCK.AttachToOnSelectionChange( _FCK_PaddingNodeListener ) ;
811 FCK.MouseDownFlag = false ;
812 FCKTools.AddEventListener( FCK.EditorDocument, 'mousemove', _FCK_MouseEventsListener ) ;
813 FCKTools.AddEventListener( FCK.EditorDocument, 'mousedown', _FCK_MouseEventsListener ) ;
814 FCKTools.AddEventListener( FCK.EditorDocument, 'mouseup', _FCK_MouseEventsListener ) ;
824 if ( FCK.EditMode != FCK_EDITMODE_WYSIWYG )
837 FCKTools.AddEventListener( FCK.EditorDocument, 'keyup', undoFunc ) ;
841FCK.EnterKeyHandler = new FCKEnterKey( FCK.EditorWindow, FCKConfig.EnterMode, FCKConfig.ShiftEnter…
844 FCK.KeystrokeHandler.AttachToElement( FCK.EditorDocument ) ;
846 if ( FCK._ForceResetIsDirty )
847 FCK.ResetIsDirty() ;
852 if ( FCKBrowserInfo.IsIE && FCK.HasFocus )
853 FCK.EditorDocument.body.setActive() ;
855 FCK.OnAfterSetHTML() ;
861 if ( FCK.Status != FCK_STATUS_NOTLOADED )
867 FCK.SetStatus( FCK_STATUS_ACTIVE ) ;
887 if ( FCK.Status != FCK_STATUS_COMPLETE )
890 if ( FCK.EditMode == FCK_EDITMODE_WYSIWYG )
895 return !FCK.Paste() ;
911 var oCommand = FCK.Commands.GetCommand( keystrokeValue ) ;
928 var eLinkedField = oDocument.getElementById( FCK.Name ) ;
935 FCK.LinkedField = eLinkedField ;
939 eLinkedField = oDocument.getElementsByName( FCK.Name )[i++] ;
973 var FCKFocusManager = FCK.FocusManager =
1031 if ( typeof(FCK) != 'undefined' && FCK.HasFocus )
1044 FCK.HasFocus = false ;
1045 FCK.Events.FireEvent( "OnBlur" ) ;
1051 FCK.Focus() ;
1059 if ( !FCK.HasFocus && !FCKFocusManager.IsLocked )
1061 FCK.HasFocus = true ;
1062 FCK.Events.FireEvent( "OnFocus" ) ;