Join the AMA (Ask Me Anything) with Firefox leadership team to talk about Firefox priorities in 2024. Mark your calendar! Thursday, June 13, 17:00 - 19:00 UTC.

Search Support

Avoid support scams. We will never ask you to call or text a phone number or share personal information. Please report suspicious activity using the “Report Abuse” option.

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.