rem: win.document.write(html); win.document.close(); 
add: template['file'] = previewPage; template['width'] = previewWidth; template['height'] = previewHeight;  tinyMCE.openWindow(template, {editor_id : editor_id, resizable : "yes", scrollbars : "yes", content : tinyMCE.getContent(), content_css : tinyMCE.getParam("content_css")}); } else { var win = window.open("", "mcePreview", "menubar=yes,toolbar=yes,scrollbars=yes,left=20,top=20,width=" + previewWidth + ",height="  + previewHeight); var html = "";  html += '<!doctype html public "- html += '<html>'; html += '<head>'; html += '<title>' + tinyMCE.getLang('lang_preview_desc') + '</title>'; html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">'; html += '<link href="' + tinyMCE.getParam("content_css") + '" rel="stylesheet" type="text/css">'; html += '</head>'; html += '<body>'; html += tinyMCE.getContent(); html += '</body>'; html += '</html>';  win.document.write(html); win.document.close(); } 
context: function TinyMCE_preview_execCommand(editor_id, element, command, user_interface, value) {	// Handle commands	switch (command) {		case "mcePreview":			var win = window.open("", "mcePreview", "menubar=yes,toolbar=yes,scrollbars=yes,left=20,top=20,width=" + tinyMCE.getParam("plugin_preview_width", "550") + ",height="  + tinyMCE.getParam("plugin_preview_height", "600"));			var html = "";			html += '<!doctype html public "-//w3c//dtd html 4.0 transitional//en">';			html += '<html>';			html += '<head>';			html += '<title>' + tinyMCE.getLang('lang_preview_desc') + '</title>';			html += '<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">';			html += '<link href="' + tinyMCE.getParam("content_css") + '" rel="stylesheet" type="text/css">';			html += '</head>';			html += '<body>';			html += tinyMCE.getContent();			html += '</body>';			html += '</html>';			win.document.write(html);			win.document.close();			return true;	}	// Pass to next handler in chain	return false;}
meta: 5314	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/5314/873ce1c62e52365d732f67421272ae1302559b15/editor_plugin.js/buggy/www/extras/tinymce/jscripts/tiny_mce/plugins/preview/editor_plugin.js