1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
|
---
title: Midas editor module security preferences
slug: Mozilla/Projects/Midas/Security_preferences
translation_of: Mozilla/Projects/Midas/Security_preferences
---
<div class="warning">Αυτή η λειτουργία αφαιρέθηκε πλήρως από <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=913734#c19">2013-12-14 18:23 PST</a>, βλέπε: bugs <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=38966#c177">38966</a> και <a href="https://bugzilla.mozilla.org/show_bug.cgi?id=913734#c32">913734</a></div>
<div class="note">
<p><strong>Σημείωση:</strong> Αν οδηγηθήκατε σε αυτή τη σελίδα από ένα πλαίσιο κειμένου του Firefox ή από άλλο προϊόν Mozilla, δοκιμάστε τις συντομεύσεις πληκτρολογίου για τις εντολές αποκοπή, αντιγραφή και επικόλληση:</p>
<ul>
<li>Αντιγραφή: Ctrl+C ή Ctrl+Insert (command+C σε Mac)</li>
<li>Επικόλληση: Ctrl+V ή Shift+Insert (command+V σε Mac)</li>
<li>Αποκοπή: Ctrl+X ή Shift+Delete (command+X σε Mac)</li>
</ul>
<p>Οι πληροφορίες στο υπόλοιπο της σελίδας προορίζονται για προγραμματιστές ιστού και προχωρημένους χρήστες. Παρακαλούμε μην δοκιμάσετε να τροποποιήσετε αυτή τη σελίδα.</p>
</div>
<p>To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in Midas, which is Mozilla's rich text editor component. This means that the corresponding buttons on the <a href="http://www-archive.mozilla.org/editor/midasdemo/" title="http://www-archive.mozilla.org/editor/midasdemo/">Mozilla Rich Text Editing demo page</a> will not work. To enable these functions, you must modify your browser preferences.</p>
<div class="warning">
<p><strong>Warning:</strong> Changing these preferences can leave your browser insecure, especially if you grant permission to untrusted sites. Only change these settings as needed to try the demo above and to test your own add-on or Firefox-internal code, and be sure to restore the default settings when you're done!</p>
</div>
<h2 id="Changing_the_preferences_in_Firefox">Changing the preferences in Firefox</h2>
<ol>
<li>Quit Firefox. If you have Quick Launch running (on Windows, this is an icon in the toolbar), quit that too.</li>
<li><a class="external" href="http://support.mozilla.com/en-US/kb/Profiles">Find your Firefox profile directory</a>.</li>
<li>Open the <code class="filename">user.js</code> file from that directory in a text editor. If there's no <code>user.js</code> file, create one.</li>
<li>Add these lines to <code class="filename">user.js</code>:
<pre class="code">user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "https://www-archive.mozilla.org");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
</pre>
</li>
<li>Change the URL <span class="external"><code class="url">https://www.mozilla.org</code></span> to the site for which you want to enable this function.</li>
<li>Save the file and restart Firefox. The Clipboard buttons in the demo, or similar buttons on the sites you listed, should now function.</li>
</ol>
<div class="note"><strong>Note:</strong> The preference is site as well as protocol specific. For example:
<pre>user_pref("capability.policy.allowclipboard.sites", "http://www-archive.mozilla.org")
</pre>
<p>is not the same as:</p>
<pre>user_pref("capability.policy.allowclipboard.sites", "https://www-archive.mozilla.org")
</pre>
<p>This is because the first uses <a href="/en-US/docs/HTTP" title="/en-US/docs/HTTP">HTTP</a> while the second uses HTTPS.</p>
If you want to allow multiple URLs to access the Paste operation, separate the URLs with a space. For example:
<pre>user_pref("capability.policy.allowclipboard.sites", "https://www-archive.mozilla.org https://developer.mozilla.org")
</pre>
</div>
<p>Again, keep in mind the security risks involved here and be sure to remove permission to access the clipboard once you no longer need it enabled.</p>
<h2 id="See_also">See also</h2>
<ul>
<li id="For_more_information_about_security_policies.2C_see_this_article_about_Configurable_Security_Policies.">For more information about security policies, see this article about <a href="http://www.mozilla.org/projects/security/components/ConfigPolicy.html" title="http://www.mozilla.org/projects/security/components/ConfigPolicy.html">Configurable Security Policies</a>.</li>
<li><a href="/en-US/docs/Web/Security/CSP">CSP</a> and <a href="/en-US/docs/Web/Security/CSP/CSP_policy_directives">Policy Directives</a>.</li>
</ul>
|