Thursday, March 25, 2010
Setting Prefs for the Mozilla Rich Text Editing Demo
For Firefox:
- Quit Firefox. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
- Find your Firefox profile directory. On Windows, this is often located in
C:\Documents and Settings\
\Application Data\Mozilla\Firefox\Profiles\ . - Open the
user.js
file from that directory in a text editor. If there's nouser.js
file, create one. -
Add these lines to
user.js
:user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");*Change the url "http://www.mozilla.org" to where you want to enable this function.
- Save the file, and restart Firefox. The Clipboard buttons should now function.
Note: The preference is site as well as protocol specific. For example
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org")is not the same as
user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org")(the first is http and the second is https)
If you want to allow multiple urls to access the Paste operation, separate the urls with a space. For example:
user_pref("capability.policy.allowclipboard.sites",
"http://www.mozilla.org https://www.mozilla.org")
Subscribe to:
Posts (Atom)