Cut,copy And Paste Is Not Working For Firefox 15 Onwords?
Solution 1:
From Mozilla's support pages;
Starting in Firefox 17 privileged code can not run in a web page anymore. In Firefox 15 you have to manually change a setting to enable it. You can bring that kind of functionality to an extension. Starting points: https://developer.mozilla.org/en-US/docs/Code_snippets/Interaction_between_privileged_and_non-privileged_pages
For beginners: https://developer.mozilla.org/en-US/docs/XUL_School/Getting_Started_with_Firefox_Extensions
More information: https://developer.mozilla.org/en-US/docs/Bypassing_Security_Restrictions_and_Signing_Code
Here you can find a (somewhat heated) discussion on the subject that has been going on for a couple of years :)
Solution 2:
I recommend ZeroClipboard as a workaround. You can select an element by ID and overlay it with a transparent flash video of the same size. Flash allows access to the clipboard so you can cut/copy things. If iThings aren't so much of a worry, it might be a decent option.
ZeroClipboard requires Flash version 9 or higher. So I would use swfobject to check for the required version first.
if (swfobject.hasFlashPlayerVersion('9')) {
$.getScript('/js/ZeroClipboard.min.js', function(){
ZeroClipboard.setMoviePath('/swf/ZeroClipboard10.swf');
var clip = newZeroClipboard.Client;
clip.setCSSEffects(true);
clip.setHandCursor(true);
clip.glue('copy-elem-id', 'copy-elem-id-container');
clip.addEventListener('onMouseDown', function(e){
var copyText = $('#textbox-id').text();
clip.setText(copyText);
});
});
}
Solution 3:
we need to add some privileges using about:config with out quotation.
user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org"); user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess"); user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
Post a Comment for "Cut,copy And Paste Is Not Working For Firefox 15 Onwords?"