JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
vanilla ckeditor-3.1
[ckeditor.git] / _source / plugins / clipboard / dialogs / paste.js
index a9e2c82..8903892 100644 (file)
@@ -1,11 +1,11 @@
 /*\r
-Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved.\r
+Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved.\r
 For licensing, see LICENSE.html or http://ckeditor.com/license\r
 */\r
 \r
 CKEDITOR.dialog.add( 'paste', function( editor )\r
 {\r
-       var isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname;\r
+       var isCustomDomain = CKEDITOR.env.isCustomDomain();\r
 \r
        return {\r
                title : editor.lang.clipboard.title,\r
@@ -118,7 +118,7 @@ CKEDITOR.dialog.add( 'paste', function( editor )
                                html = iframe.$.contentWindow.document.body.innerHTML;\r
 \r
                        setTimeout( function(){\r
-                               editor.insertHtml( html );\r
+                               editor.fire( 'paste', { 'html' : html } );\r
                        }, 0 );\r
 \r
                },\r