BASICS

ADMINISTRATION

DEVELOPMENT

SUPER ADMIN

LAST UPDATED
3/13/2013

Turning on Cut/Copy/Paste in the Firefox Browser

How to Enable Cut, Copy and Paste for the WYSIWYG editor in Firefox

Setting Preferences to allow Cut/Copy/Paste in Firefox

To protect users' private information, Mozilla's Firefox has settings that prevent scripts from invoking the Cut, Copy, and Paste commands, so the corresponding buttons on the WYSIWYG Toolbar will not work when using Firefox because of these default restrictions. The keyboard shortcuts (Ctrl-x, Ctrl-c, Ctrl-p for Windows, Cmd-x, Cmd-c, Cmd-v for Macintosh) do work as expected.

To enable the WYSIWYG Toolbar Cut/Copy/Paste buttons to function in Firefox, the default settings of the browser's user preferences must be modified. This can be done manually (instructions - adapted from Mozilla's support site - are provided below), or via one or more Firefox add-ons. If you only want to give Cut/Copy/Paste button access to OU Campus then the manual Windows/Mac instructions below are all that is needed.

Please note that changing the configuration settings of your Firefox browser to allow this is not for the novice user. We have no other way to simplify the steps needed to allow Cut/Copy/Paste button access to OU Campus.

There are third party Firefox add-ons may allows access to the cut, copy, and paste buttons in Firefox. With the rapid release process that Mozilla uses, some third party add-ons may no longer work and need to be updated to allow the Cut/Copy/Paste buttons to function again.

AllowClipboard Helper, allows you to manage the settings after manually setting them as outlined below. The add-on can be downloaded from Mozilla's website here. It has not been updated in over a year, and may no longer be compatible with the latest releases of Firefox (some users report that this still works).

ChromeEdit Plus (works with Firefox) which can be found here (only works on Windows). This add-on also requires that the Policy be manually setup first. Please note that these add-ons are not developed by the Mozilla team.

These plug-in (or others you may find that deal with Firefox's Copy/Paste security) still requires that a user first create a Policies setting in a Firefox user preferences support file (user.jp or prefs.js) as described below. What these add-ons can help streamline is when a user encounters a new site with a WYSIWYG editor that they want to grant Cut/Copy/Paste access (restarting the browser after each update). 

You can read more about granting Javascript access to the Firefox clipboard over at the Mozillazine Page dedicated to this topic. 

For Firefox on Windows:

1. Quit Firefox. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.

2. Find your Firefox profile directory. On Windows, this is often located in C:\Documents and Settings\<Windows login>\Application Data\Mozilla\Firefox\Profiles\<one folder>.
(For more info on locating your profile folder, use the search term 'editing configuration files' in the Firefox Knowledge Base at: http://support.mozilla.com/en-US/kb/ ), in Windows 7 this is accessed by typing %appdata% in the location bar.

3. Open the user.js file from that directory in a text editor. If there's no user.js file, create one.

4. Add these lines to user.js:

user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.omniupdate.com http://omniupdate.com https://www.omniupdate.com https://omniupdate.com");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

Note: the 'capability.policy.allowclipboard.sites' user_pref can have additional sites 
in the value list. Each site must be space-separated, and can be anything 
from a specific URL to an entire domain.

5. Save the file, and restart Firefox. The Clipboard buttons of the WYSIWYG toolbar should now function as expected.


For Firefox on Macintosh:

1. Quit Firefox.

2. Find your Firefox profile directory. On Macintosh, this is often located in one of these locations:

~/Library/Mozilla/Firefox/Profiles/<profile folder>
~/Library/Application Support/Firefox/Profiles/<profile folder>

The tilde character (~) refers to the current user's Home folder, so ~/Library is the /Macintosh HD/Users/<username>/Library folder.
The format of the <profile folder> name is: randomcharaters.default (example: ohertjj8.default, or 2nl7dtw6.username ) This will be unique for each user's profile folder.

3. Make a backup copy of the prefs.js file found inside this folder.

4. Using a text editor add the following lines to the end of the original prefs.js file:

user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.omniupdate.com http://omniupdate.com https://www.omniupdate.com https://omniupdate.com");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

Note: the 'capability.policy.allowclipboard.sites' user_pref can have additional sites 
in the value list. Each site must be space-separated, and can be anything 
from a specific URL to an entire domain.


5. Save the prefs.js file. Launch Firefox and test Cut/Copy/Paste functions when editing an page in OU Campus.

If your institution is an OmniUpdate Enterprise Server License customer, the "capability.policy.allowclipboard.sites" setting would need to contain the Domain URL of your OU Campus appliance installed in your data center. This is most easily seen when clicking the DirectEdit link of a web page under OU Campus management (when not currently logged into OU Campus). The domain name found in the URL of the OU Campus login page is what you would add to this setting.

For more information about Firefox's configurable security policies, see http://www.mozilla.org/projects/security/components/ConfigPolicy.html.


Was this page helpful?

Additional Comments:


(Include your email address if you would like a reply)