Setting Clipboard Preferencess for Mozilla/Netscape HTML Editing

To protect users' private information, unprivileged scripts cannot invoke the Cut, Copy, and Paste commands in the Netscape/Mozilla rich text editor, so the corresponding buttons on the HTML Editor will not work. To enable these functions, you must modify your browser preferences.

  1. Quit Netscape/Mozilla. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
  2. Find your Netscape/Mozilla profile directory. On Windows 2000, this may be located in
    C:\Documents and Settings\username\Application Data\Mozilla\Profiles\profilename\xxxxxxxx.slt
    . On Linux/Unix systems, this may be located in
    ~/.mozilla/profilename/xxxxxxxx.slt
    Instead of .mozilla, you may also have .netscape or some other directory depending on which Gecko-based browser you're using.
  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.default.Clipboard.cutcopy", "allAccess");
          user_pref("capability.policy.default.Clipboard.paste", "allAccess");
         
    If you want to enable cut/paste for one site only, add the following instead:
    
          user_pref("capability.policy.policynames", "allowclipboard");
          user_pref("capability.policy.allowclipboard.sites", "http://site.name");
          user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
          user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");
         
  5. Save the file, and restart Mozilla. The Clipboard buttons should now function.