Index: /FCKeditor/trunk/editor/plugins/dragresizetable/fckplugin.js
===================================================================
--- /FCKeditor/trunk/editor/plugins/dragresizetable/fckplugin.js	(revision 1364)
+++ /FCKeditor/trunk/editor/plugins/dragresizetable/fckplugin.js	(revision 1365)
@@ -11,4 +11,5 @@
 	"_LastX" : null,
 	"_TableMap" : null,
+	"_doc" : document,
 	"_IsInsideNode" : function( w, domNode, pos )
 	{
@@ -100,5 +101,5 @@
 		// Calculate maximum and minimum x-coordinate delta.
 		var borderIndex = FCKDragTableHandler._GetResizeBarPosition() ;
-		var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ;
+		var offset = FCKDragTableHandler._GetIframeOffset(); 
 		var table = FCKTools.GetElementAscensor( FCKDragTableHandler._LeftCell, "table" );
 		var minX = null ;
@@ -310,5 +311,5 @@
 		if ( FCKTools.GetElementDocument( node ) == document )
 		{
-			var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ;
+			var offset = this._GetIframeOffset() ;
 			mouseX -= offset.x ;
 			mouseY -= offset.y ;
@@ -374,5 +375,5 @@
 		if ( FCKTools.GetElementDocument( node ) == FCK.EditorDocument )
 		{
-			var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ;
+			var offset = this._GetIframeOffset() ;
 			mouse.x += offset.x ;
 			mouse.y += offset.y ;
@@ -393,5 +394,5 @@
 		if ( this._ResizeBar == null )
 		{
-			this._ResizeBar = document.createElement( "div" ) ;
+			this._ResizeBar = this._doc.createElement( "div" ) ;
 			var paddingBar = this._ResizeBar ;
 			var paddingStyles = { 'position' : 'absolute', 'cursor' : 'e-resize' } ;
@@ -401,5 +402,7 @@
 				paddingStyles.opacity = 0.10 ;
 			FCKDomTools.SetElementStyles( paddingBar, paddingStyles ) ;
-			document.body.appendChild( paddingBar ) ;
+			this._avoidStyles( paddingBar );
+			paddingBar.setAttribute('_fcktemp', true);
+			this._doc.body.appendChild( paddingBar ) ;
 			FCKTools.AddEventListener( paddingBar, "mousemove", this._ResizeBarMouseMoveListener ) ;
 			FCKTools.AddEventListener( paddingBar, "mousedown", this._ResizeBarMouseDownListener ) ;
@@ -409,5 +412,6 @@
 			// IE doesn't let the tranparent part of the padding block to receive mouse events unless there's something inside.
 			// So we need to create a spacer image to fill the block up.
-			var filler = document.createElement( "img" ) ;
+			var filler = this._doc.createElement( "img" ) ;
+			filler.setAttribute('_fcktemp', true);
 			filler.border = 0 ;
 			filler.src = FCKConfig.BasePath + "images/spacer.gif" ;
@@ -430,6 +434,6 @@
 
 		var paddingBar = this._ResizeBar ;
-		var offset = FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ;
-		var tablePos = FCKTools.GetWindowPosition( w, table ) ;
+		var offset = this._GetIframeOffset() ;
+		var tablePos = this._GetTablePosition( w, table ) ;
 		var barHeight = table.offsetHeight ;
 		var barTop = offset.y + tablePos.y ;
@@ -472,5 +476,7 @@
 		if ( paddingBar.getElementsByTagName( "div" ).length < 1 )
 		{
-			visibleBar = document.createElement( "div" ) ;
+			visibleBar = this._doc.createElement( "div" ) ;
+			this._avoidStyles( visibleBar );
+			visibleBar.setAttribute('_fcktemp', true);
 			paddingBar.appendChild( visibleBar ) ;
 		}
@@ -498,5 +504,23 @@
 					left	: '-100000px'
 				} ) ;
+	},
+	"_GetIframeOffset" : function ()
+	{
+		return FCKTools.GetDocumentPosition( window, FCK.EditingArea.IFrame ) ;
+	},
+	"_GetTablePosition" : function ( w, table )
+	{
+		return FCKTools.GetWindowPosition( w, table ) ;
+	},
+	"_avoidStyles" : function( element )
+	{
+		FCKDomTools.SetElementStyles( element,
+			{
+				padding		: '0',
+				backgroundImage	: 'none',
+				border		: '0'
+			} ) ;
 	}
+
 };
 
