mozilla
Your Search Results

    Midas editor module security preferences

    Note: If you've reached this page from a message box in Firefox or another Mozilla product, try using keyboard shortcuts for the Cut, Copy, and Paste commands:

    • Copy: Ctrl+C or Ctrl+Insert (command+C on Mac)
    • Paste: Ctrl+V or Shift+Insert (command+V on Mac)
    • Cut: Ctrl+X or Shift+Delete (command+X on Mac)

    The information on the rest of this page is for Web developers and advanced users. Please do not try to modify this page.

    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 Mozilla Rich Text Editing demo page will not work. To enable these functions, you must modify your browser preferences.

    Warning: 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!

    Changing the preferences in Firefox

    1. Quit Firefox. If you have Quick Launch running (on Windows, this is an icon in the toolbar), quit that too.
    2. Find your Firefox profile directory.
    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.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");
      
    5. Change the URL https://www.mozilla.org to the site for which you want to enable this function.
    6. Save the file and restart Firefox. The Clipboard buttons in the demo, or similar buttons on the sites you listed, should now function.
    Note: The preference is site as well as protocol specific. For example:
    user_pref("capability.policy.allowclipboard.sites", "http://www-archive.mozilla.org")
    

    is not the same as:

    user_pref("capability.policy.allowclipboard.sites", "https://www-archive.mozilla.org")
    

    This is because the first uses HTTP while the second uses 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.allowclipboard.sites", "https://www-archive.mozilla.org https://developer.mozilla.org")
    

    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.

    See also

    Document Tags and Contributors

    Contributors to this page: sahabatmobilsukses, krislizzett003, mmeladakis, rb9926, jswisher, Bnote3, jemlee, marildams, trevorlewinter, steelmal, mulyo.wiharto, ianhakes, BAYBHeff, RONNYRAY, deerichandcody, grebbien, ROCKYYYYY, CindersT, mel.griffin, G-BASS, anna.radzicka@gmail.com, CristinaH, bela3333, NANSHECLA, 9718519@@@@, Brownsan, charlottehardy32, 2013115, Y0537878Z, Sheppy, remas2010, copitlory, fscholz, VISION2FREEDOM, jackysuandi, marly, kazadi, mbellanie, AMIB, CGoins, roberson32, artisteamer, simin_nemati, Ainun1999, nicolashuart, Lejonprinsessan, Lizarredondo18, relampiega, stelamia, sweetiepie197730, importadosloja2, mjbrasda, FlyingAngel007, aubrey, agungaji92, aamir, jscape, ArashFernando, Ali., dave, pitbul, isael_araujo, ayomikeven, 1346110, william_joc, shuff1349, ella-kelly, padominguex, ligh103549, jlekbir, scantu, PPLK_SYELDAH_INDONESIA, hvt050, tdash0355, iGOT2, nekad93, rosfiga.com, Dr.chisulo@gmail.com, elizabethmcelre, rawoodson22, SEXYRIMMA, Horace_McNeill, marthahk, Frankie, clanghans, peaches56, dmoore2, amrifahrizal23@yahoo.com, tcf.fernandopereira@gmail.com, sabin1001, Thea5911, Meriemtazir, Laurie, s87, bluesman, joshua_essiam, ivanlopez, Majhok-Chaw, sheisler, encore09, okins, slim242, teoli, francois.boutin@free.fr, canggihfitrahh, KeeferKRockasocki, angiolinag, Kathymanu, devin_linnington, KITAGAWA, heycynh@aol.com, ethertank, camzephir1, muhammed, Muhammad-Asghar-Ali-Khan-Jatoi, web4dealz, peterm9, nsewan, joayang@yahoo.com, stevekellman, cframpton, amandacrites, sharadwms, hauphuongtravel, sonimo@hotmail.com, shirlene, anavcuesta, js120876, a.verdell_93@yahoo.com, sujankhan, afelds813, gstevens2014, nannance, momakarebear, aknop8586, afbank, missfiyared, maryjackson5754@yahoo.com, tepitotal, diane.j.williams, mazengamal, mat, lewi07, mariscal_araceli, zohreh, tami.deangelis, lanecap20, didiz, fatemehsaeidy, mvdblue, Jcelaya, soreque.tania, moorezilla, leah988, Davidwboswell, pusatforex.com, jmstest, kentrell.pattillo, ashsutton, ELPIDIO, cherrish.berryman, tori5801, polo, trevorh, rmorrison, yvonne_narcisse, iwan10, Graha, vietanh98, malloryee, bokepz10, lis0806, kcohen, Stu4u, 3928022, Saulo_Dum, alym1005, rugratchaser1, bregis, yassinemounir, calypso44000, jamalsoufane, dunka09, yaseryamany, ronyworld, matilda1107, margus, Abe77, TECNOSAMSUNG, rmzei, faithregan, hadraj, musettemarie27@yahoo.com, jessicalpz66, bakecapasion, kscarfone, mawanaja, Kali, michelle25, homauon7227, roxanaesther, standifergirt, ezarda, tenerezza, kristina728, jjp1969@gmail.com, mikaellaescort, collinsaffum@gmail.com, Daviz, Mrs.teacher, rogeriolimaramos, dika, yummy71, ChessicaRae, phenora, udinsa, cheryl_putri, sadra, elcantor67, floriane, Ayu, hank778@gmail.com, brown_r10390, zaza256, nicholas, chang, jamma, adi.nurmahdi, remas2011, leann_spesard, mcbharti, kurt10on, l3k0vic_98, abu.bakar66@hotmail.com, anthonyperez0530, shirleytcowan@gmail.com, sepriadi.sepriadi@yahoo.co.id, eezila28, chiromo1, ElliBelli, ConnectWithMark, akabouya, melissa, insulaser, lorenehopkins, sacf, janrz
    Last updated by: Sheppy,