当前位置: 代码迷 >> JavaScript >> firefox里文本编辑器的ctrl+v功能没用!IE里面却可以用,该怎么解决
  详细解决方案

firefox里文本编辑器的ctrl+v功能没用!IE里面却可以用,该怎么解决

热度:299   发布时间:2012-03-18 13:55:39.0
firefox里文本编辑器的ctrl+v功能没用!IE里面却可以用

firefox里文本编辑器(Editor.js)的ctrl+v功能没用!IE里面用可以用ctrl+v粘贴却可以用.各位帮帮忙。请问怎么解决

------解决方案--------------------
可能是用到了EditMode,在FF里不支持!
------解决方案--------------------
FF压根就用不了编辑器 因为编辑器用了个IE专有的控件
------解决方案--------------------
真不明白这些开发商怎么想的,互不兼容。IE里有的在FF里就不让用。真受不了
------解决方案--------------------
在线编辑器对ff的兼容性是个问题
因此最近都弃用ewebeditor改用fckeditor了
------解决方案--------------------
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.

1. Quit Mozilla. If you have Quick Launch running (in Windows, an icon in the toolbar), quit that too.
2. Find your Mozilla profile directory. On Windows, this is often located in c://WINNT/Profiles//Application Data/Mozilla. (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.policynames ", "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 ");

5. Save the file, and restart Mozilla. The Clipboard buttons should now function.
  相关解决方案