X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=_source%2Fplugins%2Fpastetext%2Fplugin.js;h=2d0397445a3edb415e7edb0d3552d5ff8ce509f8;hb=055b6b0792ce7dc53d47af606b367c04b927c2ab;hp=d391fd6691714be01f4b47c64a6cf2c47636cfa3;hpb=941b0a9ba4e673e292510d80a5a86806994b8ea6;p=ckeditor.git diff --git a/_source/plugins/pastetext/plugin.js b/_source/plugins/pastetext/plugin.js index d391fd6..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... ); @@ -57,7 +40,7 @@ For licensing, see LICENSE.html or http://ckeditor.com/license function doInsertText( doc, text ) { // Native text insertion. - if( CKEDITOR.env.ie ) + if ( CKEDITOR.env.ie ) { var selection = doc.selection; if ( selection.type == 'Control' )