X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fclipboard%2Fdialogs%2Fpaste.js;h=89038922ea581988dd46fe932cb5532ab4a4ddd2;hb=941b0a9ba4e673e292510d80a5a86806994b8ea6;hp=a9e2c8287305867ef8085a855675106df3d60d4d;hpb=ea7e3453c7b0f023b050aca6d9f83ab372860d91;p=ckeditor.git diff --git a/_source/plugins/clipboard/dialogs/paste.js b/_source/plugins/clipboard/dialogs/paste.js index a9e2c82..8903892 100644 --- a/_source/plugins/clipboard/dialogs/paste.js +++ b/_source/plugins/clipboard/dialogs/paste.js @@ -1,11 +1,11 @@ /* -Copyright (c) 2003-2009, CKSource - Frederico Knabben. All rights reserved. +Copyright (c) 2003-2010, CKSource - Frederico Knabben. All rights reserved. For licensing, see LICENSE.html or http://ckeditor.com/license */ CKEDITOR.dialog.add( 'paste', function( editor ) { - var isCustomDomain = CKEDITOR.env.ie && document.domain != window.location.hostname; + var isCustomDomain = CKEDITOR.env.isCustomDomain(); return { title : editor.lang.clipboard.title, @@ -118,7 +118,7 @@ CKEDITOR.dialog.add( 'paste', function( editor ) html = iframe.$.contentWindow.document.body.innerHTML; setTimeout( function(){ - editor.insertHtml( html ); + editor.fire( 'paste', { 'html' : html } ); }, 0 ); },