JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.0.1
[ckeditor.git] / _source / plugins / preview / plugin.js
index 2238f92..6d3a369 100644 (file)
@@ -16,7 +16,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                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
@@ -37,7 +37,9 @@ For licensing, see LICENSE.html or http://ckeditor.com/license
                                        '<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