I have got a problem.
I using TikiWiki with FCKeditor turned on, all was working fine until just now, now I get this error code when I try to insert an image.
// 0 ) { timer = FCKTools.SetTimeout( this.Show, waitMilliseconds, this, null, window ) ; return ; } var throbberParent = $( 'throbberBlock' ) ; if (throbberParent.childNodes.length == 0) { // Create the throbber blocks. var classIds = [ 1,2,3,4,5,4,3,2 ] ; while ( classIds.length > 0 ) throbberParent.appendChild( document.createElement( 'div' ) ).className = ' throbber_' + classIds.shift() ; } // Center the throbber. var frm = $( 'contents' ) ; var frmCoords = FCKTools.GetDocumentPosition( window, frm ) ; var x = frmCoords.x + ( frm.offsetWidth - throbberParent.offsetWidth ) / 2 ; var y = frmCoords.y + ( frm.offsetHeight - throbberParent.offsetHeight ) / 2 ; throbberParent.style.left = parseInt( x, 10 ) + 'px' ; throbberParent.style.top = parseInt( y, 10 ) + 'px' ; // Show it. throbberParent.style.visibility = '' ; // Hide tabs and buttons: $( 'Tabs' ).style.visibility = 'hidden' ; $( 'PopupButtons' ).style.visibility = 'hidden' ; // Setup the animation interval. timer = setInterval( updateThrobber, 100 ) ; }, Hide : function() { if ( timer ) { clearInterval( timer ) ; timer = null ; } $( 'throbberBlock' ).style.visibility = 'hidden' ; // Show tabs and buttons: $( 'Tabs' ).style.visibility = '' ; $( 'PopupButtons' ).style.visibility = '' ; } } ; }() ; // Drag and drop handlers. var DragAndDrop = function() { var registeredWindows = [] ; var lastCoords ; var currentPos ; var cleanUpHandlers = function() { for ( var i = 0 ; i < registeredWindows.length ; i++ ) { FCKTools.RemoveEventListener( registeredWindows[i].document, 'mousemove', dragMouseMoveHandler ) ; FCKTools.RemoveEventListener( registeredWindows[i].document, 'mouseup', dragMouseUpHandler ) ; } } var dragMouseMoveHandler = function( evt ) { if ( !lastCoords ) return ; if ( !evt ) evt = FCKTools.GetElementDocument( this ).parentWindow.event ; // Updated the last coordinates. var currentCoords = { x : evt.screenX, y : evt.screenY } ; currentPos = { x : currentPos.x + ( currentCoords.x - lastCoords.x ), y : currentPos.y + ( currentCoords.y - lastCoords.y ) } ; lastCoords = currentCoords ; frameElement.style.left = currentPos.x + 'px' ; frameElement.style.top = currentPos.y + 'px' ; if ( evt.preventDefault ) evt.preventDefault() ; else evt.returnValue = false ; } var dragMouseUpHandler = function( evt ) { if ( !lastCoords ) return ; if ( !evt ) evt = FCKTools.GetElementDocument( this ).parentWindow.event ; cleanUpHandlers() ; lastCoords = null ; } return { MouseDownHandler : function( evt ) { var view = null ; if ( !evt ) { view = FCKTools.GetElementDocument( this ).parentWindow ; evt = view.event ; } else view = evt.view ; var target = evt.srcElement || evt.target ; if ( target.id == 'closeButton' || target.className == 'PopupTab' || target.className == 'PopupTabSelected' ) return ; lastCoords = { x : evt.screenX, y : evt.screenY } ; // Save the current IFRAME position. currentPos = { x : parseInt( FCKDomTools.GetCurrentElementStyle( frameElement, 'left' ), 10 ), y : parseInt( FCKDomTools.GetCurrentElementStyle( frameElement, 'top' ), 10 ) } ; for ( var i = 0 ; i < registeredWindows.length ; i++ ) { FCKTools.AddEventListener( registeredWindows[i].document, 'mousemove', dragMouseMoveHandler ) ; FCKTools.AddEventListener( registeredWindows[i].document, 'mouseup', dragMouseUpHandler ) ; } if ( evt.preventDefault ) evt.preventDefault() ; else evt.returnValue = false ; }, RegisterHandlers : function( w ) { registeredWindows.push( w ) ; } } }() ; // Selection related functions. //(Became simple shortcuts after the fix for #1990) var Selection = { /** * Ensures that the editing area contains an active selection. This is a * requirement for IE, as it looses the selection when the focus moves to other * frames. */ EnsureSelection : function() { FCK.Selection.Restore() ; }, /** * Get the FCKSelection object for the editor instance. */ GetSelection : function() { return FCK.Selection ; }, /** * Get the selected element in the editing area (for object selections). */ GetSelectedElement : function() { return FCK.Selection.GetSelectedElement() ; } } // Tab related functions. var Tabs = function() { // Only element ids should be stored here instead of element references since setSelectedTab and TabDiv_OnClick // would build circular references with the element references inside and cause memory leaks in IE6. var oTabs = new Object() ; var setSelectedTab = function( tabCode ) { for ( var sCode in oTabs ) { if ( sCode == tabCode ) $( oTabs[sCode] ).className = 'PopupTabSelected' ; else $( oTabs[sCode] ).className = 'PopupTab' ; } if ( typeof( window.frames["frmMain"].OnDialogTabChange ) == 'function' ) window.frames["frmMain"].OnDialogTabChange( tabCode ) ; } function TabDiv_OnClick() { setSelectedTab( this.TabCode ) ; } window.AddTab = function( tabCode, tabText, startHidden ) { if ( typeof( oTabs[ tabCode ] ) != 'undefined' ) return ; var eTabsRow = $( 'Tabs' ) ; var oCell = eTabsRow.insertCell( eTabsRow.cells.length - 1 ) ; oCell.noWrap = true ; var oDiv = document.createElement( 'DIV' ) ; oDiv.className = 'PopupTab' ; oDiv.innerHTML = tabText ; oDiv.TabCode = tabCode ; oDiv.onclick = TabDiv_OnClick ; oDiv.id = Math.random() ; if ( startHidden ) oDiv.style.display = 'none' ; eTabsRow = $( 'TabsRow' ) ; oCell.appendChild( oDiv ) ; if ( eTabsRow.style.display == 'none' ) { var eTitleArea = $( 'TitleArea' ) ; eTitleArea.className = 'PopupTitle' ; oDiv.className = 'PopupTabSelected' ; eTabsRow.style.display = '' ; if ( window.onresize ) window.onresize() ; } oTabs[ tabCode ] = oDiv.id ; FCKTools.DisableSelection( oDiv ) ; } ; window.SetSelectedTab = setSelectedTab ; window.SetTabVisibility = function( tabCode, isVisible ) { var oTab = $( oTabs[ tabCode ] ) ; oTab.style.display = isVisible ? '' : 'none' ; if ( ! isVisible && oTab.className == 'PopupTabSelected' ) { for ( var sCode in oTabs ) { if ( $( oTabs[sCode] ).style.display != 'none' ) { setSelectedTab( sCode ) ; break ; } } } } ; }() ; // readystatechange handler for registering drag and drop handlers in cover // iframes, defined out here to avoid memory leak. // Do NOT put this function as a private function as it will induce memory leak // in IE and it's not detectable with Drip or sIEve and undetectable leaks are // really nasty (sigh). var onReadyRegister = function() { if ( this.readyState != 'complete' ) return ; DragAndDrop.RegisterHandlers( this.contentWindow ) ; } ; // The business logic of the dialog, dealing with operational things like // d
Can anyone tell me why I all of a sudden get this code?
Im sure I didnt change any settings..
Sat, 01/31/2009 - 01:41
#1