exec : function( editor )\r
{\r
var sHTML,\r
- isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname;\r
+ isCustomDomain = CKEDITOR.env.isCustomDomain();\r
if ( editor.config.fullPage )\r
sHTML = editor.getData();\r
else\r
'<head>' +\r
baseTag +\r
'<title>' + editor.lang.preview + '</title>' +\r
- '<link href="' + editor.config.contentsCss + '" type="text/css" rel="stylesheet" _cktemp="true"/>' +\r
+ '<link type="text/css" rel="stylesheet" href="' +\r
+ [].concat( editor.config.contentsCss ).join( '"><link type="text/css" rel="stylesheet" href="' ) +\r
+ '">' +\r
'</head>' + bodyHtml +\r
editor.getData() +\r
'</body></html>';\r
\r
if ( !isCustomDomain )\r
{\r
+ oWindow.document.open();\r
oWindow.document.write( sHTML );\r
oWindow.document.close();\r
}\r