X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpastetext%2Fplugin.js;h=2d0397445a3edb415e7edb0d3552d5ff8ce509f8;hb=refs%2Ftags%2Fv3.3.2;hp=0d9cd9d92e7f02134851d9f1d7ff8ba570a023a0;hpb=66f4ae0bf0280ed56bf7c0f4ab175424dd1d47a0;p=ckeditor.git diff --git a/_source/plugins/pastetext/plugin.js b/_source/plugins/pastetext/plugin.js index 0d9cd9d..2d03974 100644 --- a/_source/plugins/pastetext/plugin.js +++ b/_source/plugins/pastetext/plugin.js @@ -21,23 +21,6 @@ For licensing, see LICENSE.html or http://ckeditor.com/license if ( !clipboardText ) throw 0; return clipboardText; - }, - function() - { - window.netscape.security.PrivilegeManager.enablePrivilege( "UniversalXPConnect" ); - - var clip = window.Components.classes[ "@mozilla.org/widget/clipboard;1" ] - .getService( window.Components.interfaces.nsIClipboard ); - var trans = window.Components.classes[ "@mozilla.org/widget/transferable;1" ] - .createInstance( window.Components.interfaces.nsITransferable ); - trans.addDataFlavor( "text/unicode" ); - clip.getData( trans, clip.kGlobalClipboard ); - - var str = {}, strLength = {}, clipboardText; - trans.getTransferData( "text/unicode", str, strLength ); - str = str.value.QueryInterface( window.Components.interfaces.nsISupportsString ); - clipboardText = str.data.substring( 0, strLength.value / 2 ); - return clipboardText; } // Any other approach that's working... );