Index: /CKEditor/branches/features/fullpage/_source/plugins/preview/plugin.js
===================================================================
--- /CKEditor/branches/features/fullpage/_source/plugins/preview/plugin.js	(revision 4631)
+++ /CKEditor/branches/features/fullpage/_source/plugins/preview/plugin.js	(revision 4632)
@@ -30,5 +30,5 @@
 			{
 				var bodyHtml = '<body ',
-						body = CKEDITOR.document.getBody();
+						body = editor.document.getBody();
 
 				if ( body.getAttribute( 'id' ) )
Index: /CKEditor/branches/features/fullpage/_source/plugins/wysiwygarea/plugin.js
===================================================================
--- /CKEditor/branches/features/fullpage/_source/plugins/wysiwygarea/plugin.js	(revision 4631)
+++ /CKEditor/branches/features/fullpage/_source/plugins/wysiwygarea/plugin.js	(revision 4632)
@@ -588,8 +588,11 @@
 								// Build the additional stuff to be included into <head>.
 								var headExtra =
-									CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) + 
 									'<style type="text/css" cke_temp="1">' +
 										editor._.styles.join( '\n' ) +
 									'</style>';
+
+								!fullPage && ( headExtra =
+									CKEDITOR.tools.buildStyleHtml( editor.config.contentsCss ) +
+									headExtra );
 
 								var baseTag = config.baseHref ? '<base href="' + config.baseHref + '" cke_temp="1" />' : '';
@@ -640,21 +643,17 @@
 								{
 									data =
-										editor.config.docType +
-										'<html dir="' + editor.config.contentsLangDirection + '">' +
+										config.docType +
+										'<html dir="' + config.contentsLangDirection + '">' +
 										'<head>' +
 											baseTag +
 											headExtra +
 										'</head>' +
-										'<body>' +
-											data
+										'<body' + ( config.bodyId ? ' id="'+ config.bodyId + '"' : '' ) +
+												  ( config.bodyClass ? ' class="'+ config.bodyClass + '"' : '' ) +
+												  '>' +
+											data +
 										'</html>';
 								}
 								
-								// Append body attributes which could get overwrite
-								// by existing ones.
-								data = data.replace( /<body\b[^>]*/, '$&'
-										+ ( config.bodyId ? ' id="'+ config.bodyId + '"' : '' )
-										+ ( config.bodyClass ? ' class="'+ config.bodyClass + '"' : '' ) );
-
 								data += activationScript;
 
