`
sslaowan
  • 浏览: 380398 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Setting Prefs for the Mozilla Rich Text Editing De

阅读更多

<!----><!----> <!---->

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 toolbar), quit that too.
  2. Find your Firefox profile directory. On Windows, this is often located in

C:\Documents and Settings\<Windows login>\Application Data\Mozilla\Firefox\Profiles\<one folder>.
(See also editing configuration files for more info on locating your profile folder.)

  1. Open the user.js file from that directory in a text editor. If there's no user.js file, create one.
  2. Add these lines to user.js:

<!---->5.           <!---->user_pref("capability.policy.policynames", "allowclipboard");

<!---->6.           <!---->user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org");

<!---->7.           <!---->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.

  1. 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.allowclipboard.sites", "http://www.mozilla.org")

is not the same as

user_pref("capability.policy.allowclipboard.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.allowclipboard.sites",

  "http://www.mozilla.org https://www.mozilla.org")

 

 

分享到:
评论

相关推荐

    android-prefs:.zip

    总结,`android-prefs`项目为Android开发者提供了一套强大的偏好设置解决方案,通过深入理解和使用`android-prefs-master`代码库,开发者不仅可以创建美观的设置界面,还能优化数据存储和处理,提升应用的整体质量。...

    anny-prefs,基于android注释的sharedpreferences实用程序。.zip

    anny-prefs是一个专门为Android开发的开源项目,它提供了一个基于注解的SharedPreference实用工具库。这个库的主要目的是简化在Android应用中对SharedPreferences的操作,使开发者能够更高效、更流畅地处理用户偏好...

    jdk-9.0.1_doc-all 最新版

    The JavaFX APIs define a set of user-interface controls, graphics, media, and web packages for developing rich client applications. These APIs are in modules whose names start with javafx. Java SE ...

    .tracker.prefs

    .tracker.prefs

    skyfire s60 覆盖文件 prefs

    skyfire浏览器出现cannot provide service in your country at this time 使用方法 http://blog.csdn.net/abu406/archive/2010/04/26/5531725.aspx

    org.eclipse.jdt.core.prefs

    org.eclipse.jdt.core.prefs

    Prefs:易于使用的SharedPreferences

    Prefs prefs = new Presfs(this); 节省价值 prefs.set(key, default); 用于检索 Sting name = prefs.get(key); int num = prefs.get(key); boolean value = prefs.get(key); float var = prefs.get(key); ...

    Android代码-prefs-droid

    An easy to use wrapper tools for Shared Preference of android Getting Started from JCenter or Add dependency in your module build.gradle file dependencies { compile '...

    PyPI 官网下载 | prefs-1.0.0.tar.gz

    标题中的“PyPI 官网下载 | prefs-1.0.0.tar.gz”指的是Python Package Index(PyPI)上的一个软件包,名为“prefs”,版本为1.0.0,其打包格式为tar.gz。PyPI是Python社区的官方仓库,提供各种Python库和模块的下载...

    JumpToSystemSetting:这个工程演示跳转到系统设置中的某一项,有些需要真机下才能跳转

    跳转用到的 prefs About – prefs:root=General&path=About Accessibility – prefs:root=General&path=ACCESSIBILITY Auto-Lock – prefs:root=General&path=AUTOLOCK Bluetooth – prefs:root=Bluetooth Date & ...

    prefs-sublime:我对Sublime Text的一些个人设置

    我对Sublime Text的一些设置 安装 cd ~/Library/Application\ Support/Sublime\ Text\ 3/Packages/User/ git clone https://github.com/onebytegone/prefs-sublime.git 依存关系 pandoc (用于.md到.rtf的构建)

    carpet_prefs.sav

    carpet_prefs.sav 该数据文件所基于的示例和在 carpet.sav 中所描述的一样,但它还包含从 10 位消费者的每一位中收集到的实际排列顺序。消费者被要求按照从最喜欢到最不喜欢的顺序对 22 个产品概要文件进行排序。...

    基于Python实现的推荐系统实践代码 含数据源和源代码.rar

    sum_of_squares=sum([pow(prefs[person1][item]-prefs[person2][item],2) for item in prefs[person1] if item in prefs[person2]]) return 1/(1+sqrt(sum_of_squares)) ##numpy pandas 方法 def sim_distance2...

    org.eclipse.core.resources.prefs

    org.eclipse.core.resources.prefs

    org.eclipse.wst.web.prefs

    Eclipse 新建WEB工程的WebContent目录设置默认WebRoot,和设置编译class默认输出WebRoot\WEB-INF\classes https://blog.csdn.net/love20yh/article/details/81038250

Global site tag (gtag.js) - Google Analytics