<!----><!----> <!---->
Setting Prefs for the Mozilla Rich Text Editing Demo
To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Mozilla rich text editor, so the corresponding buttons on the Mozilla Rich Text Editing demo page will not work. To enable these functions for purposes of the demo, you must modify your browser preferences.
For Firefox:
C:\Documents and Settings\<Windows login>\Application Data\Mozilla\Firefox\Profiles\<one folder>.
(See also editing configuration files for more info on locating your profile folder.)
<!---->5. <!---->user_pref("capability.policy.policynames", "allowclipboard");
<!---->6. <!---->user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");
<!---->7. <!---->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.
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")