Where did you install Firefox from? Help Mozilla uncover 3rd party websites that offer problematic Firefox installation by taking part in our campaign. There will be swag, and you'll be featured in our blog if you manage to report at least 10 valid reports!

搜索 | 用户支持

防范以用户支持为名的诈骗。我们绝对不会要求您拨打电话或发送短信,及提供任何个人信息。请使用“举报滥用”选项报告涉及违规的行为。

Learn More

After editing user profile (user.js) rich text editing still does not allow cutting/pasting

  • 3 个回答
  • 49 人有此问题
  • 12 次查看
  • 最后回复者为 cor-el

more options

I am using the TinyMCE wysiwyg editor on a web site and have added the following to my user.js file:

user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://office.iris.ac");
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");

My full web address is http://office.iris.ac:8080/Drupal but even this still does not allow for cutting and pasting. The Mozilla rich text demo does work.

I am using FF 3.6.10

I am using the TinyMCE wysiwyg editor on a web site and have added the following to my user.js file: <pre><nowiki>user_pref("capability.policy.policynames", "allowclipboard"); user_pref("capability.policy.allowclipboard.sites", "http://office.iris.ac"); 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");</nowiki></pre> My full web address is http://office.iris.ac:8080/Drupal but even this still does not allow for cutting and pasting. The Mozilla rich text demo does work. I am using FF 3.6.10

由cor-el于修改

被采纳的解决方案

That doesn't work.

You can only have one pref setting of capability.policy.allowclipboard.sites , so in your case the second line with http://www.mozilla.org will override the first with the office.iris.ac server.
If you need multiple URLs then separate them with spaces, but in your case you do not need the mozilla site that is shown as an example.

user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://office.iris.ac");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");


See also http://kb.mozillazine.org/Allowing_only_certain_sites_to_use_JavaScript

定位到答案原位置 👍 2

所有回复 (3)

more options

选择的解决方案

That doesn't work.

You can only have one pref setting of capability.policy.allowclipboard.sites , so in your case the second line with http://www.mozilla.org will override the first with the office.iris.ac server.
If you need multiple URLs then separate them with spaces, but in your case you do not need the mozilla site that is shown as an example.

user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://office.iris.ac");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");


See also http://kb.mozillazine.org/Allowing_only_certain_sites_to_use_JavaScript

由cor-el于修改

more options

Thanks cor-el that solved my problem.