Please note, this is a STATIC archive of website developer.mozilla.org from November 2016, cach3.com does not collect or store any user information, there is no "phishing" involved.

Ez a cikk műszaki felülvizsgálatra szorul. Így segíthet.

Ez a cikk szerkesztői felülvizsgálatra szorul. Így segíthet.

Ez a fordítás nem teljes. Kérjük segítsen ezt a cikket lefordítani angolról.

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:

  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.
  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", "https://www.mozilla.org");
    user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
    user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
  5. Change the url https://www.mozilla.org to the site for which you want to enable this function.
  6. 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", "https://www.mozilla.org")

is not the same as:

user_pref("capability.policy.allowclipboard.sites", "https://www.mozilla.org")

This is because the first uses HTTP while the second uses 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",
 "https://www.mozilla.org https://developer.mozilla.org")

For more information about security policies, see https://www.mozilla.org/projects/security/components/ConfigPolicy.html.

Dokumentum címkék és a közreműködők

 Ezen oldal közreműködői: sferi, teoli, [email protected], pocak45, stollvya
 Utoljára frissítve: sferi,