Index: /MediaWiki/trunk/plugins/mediawiki/fckplugin.js
===================================================================
--- /MediaWiki/trunk/plugins/mediawiki/fckplugin.js	(revision 3181)
+++ /MediaWiki/trunk/plugins/mediawiki/fckplugin.js	(revision 3182)
@@ -528,7 +528,21 @@
 							var imgWidth	= htmlNode.getAttribute( '_fck_mw_width' ) || '' ;
 							var imgHeight	= htmlNode.getAttribute( '_fck_mw_height' ) || '' ;
-
-							stringBuilder.push( '[[Image:' )
-							stringBuilder.push( imgName )
+							var imgStyleWidth	= ( parseInt(htmlNode.style.width) || '' ) + '' ;
+							var imgStyleHeight	= ( parseInt(htmlNode.style.height) || '' ) + '' ;
+							var imgRealWidth	= ( htmlNode.getAttribute( 'width' ) || '' ) + '' ;
+							var imgRealHeight	= ( htmlNode.getAttribute( 'height' ) || '' ) + '' ;
+
+							stringBuilder.push( '[[Image:' ) ;
+							stringBuilder.push( imgName ) ;
+
+							if ( imgStyleWidth.length > 0 )
+								imgWidth = imgStyleWidth ;
+							else if ( imgWidth.length > 0 && imgRealWidth.length > 0 )
+								imgWidth = imgRealWidth ;
+
+							if ( imgStyleHeight.length > 0 )
+								imgHeight = imgStyleHeight ;
+							else if ( imgHeight.length > 0 && imgRealHeight.length > 0 )
+								imgHeight = imgRealHeight ;
 
 							if ( imgType.length > 0 )
@@ -551,5 +565,5 @@
 								stringBuilder.push( '|' + imgCaption ) ;
 
-							stringBuilder.push( ']]' )
+							stringBuilder.push( ']]' ) ;
 
 							break ;
