Archive

M T W T F S S
1234
567891011
12131415161718
19202122232425
262728293031

Newsletter

Subscribe to newsletter:


    
  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this

  
  
  • email Email to a friend
  • print Print version
  • Add to your del.icio.us del.icio.us
  • Digg this story Digg this

Setting Prefs for the Mozilla Rich Text Editing

Adjust text size: Decrease font Enlarge font
news photo

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:

  1. Quit Firefox. If you have Quick Launch running (in Windows, an icon in the too -

    lbar), quit that too.
  2. Find your Firefox profile directory. On Windows, this is often located in

    C:Documents and SettingsApplication DataMozillaFirefoxProfiles.
    (See also editing configuration files for more info on locating your profile folder.)

  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.pol
     icynames", "allowclipboard");
    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");

    *Change the url "http://www.mozilla.org" to where you want to enable this function.

  5. 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.allowcl
 ipboard.sites",
 "http://www.mozilla.org")
is not the same as
user_pref("capability.policy.allowclipbo
 ard.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.allowcl
 ipboard.sites", "http://www.mozilla.org
 https://www.mozilla.org")
-

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

- (2561 spacer.gif/wikan)

Post your comment comment Comments (0 posted)

Today's Most Searched


More News