- isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname;\r
- if ( editor.config.fullPage )\r
- sHTML = editor.getData();\r
+ config = editor.config,\r
+ baseTag = config.baseHref ? '<base href="' + config.baseHref + '"/>' : '',\r
+ isCustomDomain = CKEDITOR.env.isCustomDomain();\r
+\r
+ if ( config.fullPage )\r
+ {\r
+ sHTML = editor.getData()\r
+ .replace( /<head>/, '$&' + baseTag )\r
+ .replace( /[^>]*(?=<\/title>)/, '$& — ' + editor.lang.preview );\r
+ }\r