Changeset 5680
- Timestamp:
- 07/09/10 15:58:18 (3 years ago)
- Location:
- CKEditor/trunk
- Files:
-
- 2 edited
-
CHANGES.html (modified) (1 diff)
-
_source/plugins/pastetext/plugin.js (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
CKEditor/trunk/CHANGES.html
r5679 r5680 61 61 <li><a href="http://dev.fckeditor.net/ticket/5933">#5933</a> : Text color and background color panels don't have scrollbars anymore under office2003 and v2 skins.</li> 62 62 <li><a href="http://dev.fckeditor.net/ticket/5943">#5943</a> : An error is no longer generated when using percent or pixel values in the image dialog.</li> 63 <li><a href="http://dev.fckeditor.net/ticket/5951">#5951</a> : Avoid problems with security systems due to the usage of UniversalXPConnect.</li> 63 64 </ul> 64 65 <h3> -
CKEditor/trunk/_source/plugins/pastetext/plugin.js
r5206 r5680 21 21 if ( !clipboardText ) 22 22 throw 0; 23 return clipboardText;24 },25 function()26 {27 window.netscape.security.PrivilegeManager.enablePrivilege( "UniversalXPConnect" );28 29 var clip = window.Components.classes[ "@mozilla.org/widget/clipboard;1" ]30 .getService( window.Components.interfaces.nsIClipboard );31 var trans = window.Components.classes[ "@mozilla.org/widget/transferable;1" ]32 .createInstance( window.Components.interfaces.nsITransferable );33 trans.addDataFlavor( "text/unicode" );34 clip.getData( trans, clip.kGlobalClipboard );35 36 var str = {}, strLength = {}, clipboardText;37 trans.getTransferData( "text/unicode", str, strLength );38 str = str.value.QueryInterface( window.Components.interfaces.nsISupportsString );39 clipboardText = str.data.substring( 0, strLength.value / 2 );40 23 return clipboardText; 41 24 }
Note: See TracChangeset
for help on using the changeset viewer.
