MozTW 討論區
https://forum.moztw.org/

在rich text editor的剪貼問題
https://forum.moztw.org/viewtopic.php?f=2&t=7080
1 頁 (共 1 頁)

發表人:  sunnic [ 2005-03-16, 11:41 ]
文章主題 :  在rich text editor的剪貼問題

大家好~

我使用FF1.0版不到一個月,最近遇到rich text editor就不能執行文字的剪貼動作(Ctrl+C Ctrl+V)。彈跳出來的Mozilla說明(http://www.mozilla.org/editor/midasdemo/securityprefs.html)表示需要找到profile directory,修改它的user.js。

說明中舉例的目錄是:
c:\WINNT\Profiles\<your Windows login>\Application Data\Mozilla,可是我在我的NT中只找到:
C:\Documents and Settings\user\Application Data\Mozilla
這個相似度比較高的目錄。

因為沒有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");

可是我把這樣的user.js,放進C:\Documents and Settings\user\Application Data\Mozilla\,或是此目錄底下的C:\Documents and Settings\user\Application Data\Mozilla\Firefox\Profiles
都沒有用耶 :~

我不知道是我找錯目錄還是user.js的作法錯誤?因為工作上的關係需要使用到rich text editor,如果不能解決這問題,我就得在IE和FF之間來回切換了,請有經驗的前輩幫幫忙~><

發表人:  vsy [ 2005-03-16, 19:57 ]
文章主題 : 

我也有相同的問題
我確定路徑是對的,從 開始→執行→%AppData% 這邊去找
也有先關掉FX再進行修改動作,但是重新啟動之後問題還是在..
我目前是把複製貼上這個功能拉到工具列上治標... :?

出現訊息如附圖
指示網址為 http://www.mozilla.org/editor/midasdemo ... prefs.html

RichHtm編輯器如樂多網誌,Xuite網誌等..

附加檔案:
檔案註釋: 使用Ctrl+V時所出現的訊息
paste.gif [7.56 KiB]
被下載 1359 次

發表人:  vsy [ 2005-03-23, 03:15 ]
文章主題 : 

已經曉得問題出在哪囉~
詳情請到小女子的BLOG一探 ^(+++)^

解決方法:
若您是WIN NT 用戶,請在開始→執行 打上 %AppData%
找到像這樣的資料夾 \Mozilla\Firefox\Profiles\一串數字.default
修改裡面的user.js(如果沒有,新建一個)
將以下放到user.js裡,修改紅字的地方為可使用copy/paste的網址
引言回覆:
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");


如果需要多個網站,可使用空白分開,例如
引言回覆:
user_pref("capability.policy.allowclipboard.sites", "http://adm.blog.roodo.com http://blog.xuite.net");


需要注意的是樂多的網誌編輯位址為 http://adm.blog.roodo.com

然後存檔,重新啟動你的FireFox,成功!

發表人:  petertc [ 2005-04-30, 13:47 ]
文章主題 : 

roodo被yam吃囉

http://adm.blog.yam.com/


這個應該放入FAQ...b

發表人:  vsy [ 2005-05-02, 08:03 ]
文章主題 : 

petertc 寫:
這個應該放入FAQ...b

收到!

發表人:  frank.hgs [ 2006-03-02, 09:20 ]
文章主題 : 

我原本就有一個User.js
代碼:
user_pref("browser.search.order.1", "Google");
user_pref("browser.search.order.2", "Google Taiwan");
user_pref("browser.search.order.3", "MSN搜尋");
user_pref("browser.search.order.4", "Yahoo!字典(英漢)");
user_pref("browser.search.order.5", "Yahoo!字典(漢英)");
user_pref("browser.search.order.6", "EXCITE 日中字典");
user_pref("browser.search.order.7", "國語辭典");
user_pref("browser.search.order.8", "台灣電子地圖");
user_pref("browser.search.order.9", "Openfind");
user_pref("browser.search.order.10", "Acronyms");
user_pref("browser.search.order.11", "Encarta Dictionary"");
user_pref("browser.search.order.12", "顏氏辭典");
user_pref("browser.search.order.13", "Giga 線上字典");
user_pref("browser.search.order.14", "NICT 學術名詞");
user_pref("browser.search.order.15", "博客來");
user_pref("browser.search.order.16", "Yahoo!拍賣");
user_pref("browser.search.order.17", "Amazon.com");
user_pref("browser.search.order.18", "Zh/En Dictionary");
user_pref("browser.search.order.19", "Creative Commons");
user_pref("browser.search.order.20", "eBay");
user_pref("browser.search.order.21", "EduDict");
user_pref("browser.search.order.22", "Encyclopedia");
user_pref("browser.search.order.23", "goo 日文字典");
user_pref("browser.search.order.24", "kimo_knowledge");
user_pref("browser.search.order.25", "NBINet");
user_pref("browser.search.order.26", "sanseido");
user_pref("browser.search.order.27", "Wikipedia_en");
user_pref("browser.search.order.28", "Wikipedia_zh");

加上後
代碼:
user_pref("browser.search.order.1", "Google");
user_pref("browser.search.order.2", "Google Taiwan");
user_pref("browser.search.order.3", "MSN搜尋");
user_pref("browser.search.order.4", "Yahoo!字典(英漢)");
user_pref("browser.search.order.5", "Yahoo!字典(漢英)");
user_pref("browser.search.order.6", "EXCITE 日中字典");
user_pref("browser.search.order.7", "國語辭典");
user_pref("browser.search.order.8", "台灣電子地圖");
user_pref("browser.search.order.9", "Openfind");
user_pref("browser.search.order.10", "Acronyms");
user_pref("browser.search.order.11", "Encarta Dictionary"");
user_pref("browser.search.order.12", "顏氏辭典");
user_pref("browser.search.order.13", "Giga 線上字典");
user_pref("browser.search.order.14", "NICT 學術名詞");
user_pref("browser.search.order.15", "博客來");
user_pref("browser.search.order.16", "Yahoo!拍賣");
user_pref("browser.search.order.17", "Amazon.com");
user_pref("browser.search.order.18", "Zh/En Dictionary");
user_pref("browser.search.order.19", "Creative Commons");
user_pref("browser.search.order.20", "eBay");
user_pref("browser.search.order.21", "EduDict");
user_pref("browser.search.order.22", "Encyclopedia");
user_pref("browser.search.order.23", "goo 日文字典");
user_pref("browser.search.order.24", "kimo_knowledge");
user_pref("browser.search.order.25", "NBINet");
user_pref("browser.search.order.26", "sanseido");
user_pref("browser.search.order.27", "Wikipedia_en");
user_pref("browser.search.order.28", "Wikipedia_zh");
user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org http://blog.xuite.net");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

重啟不行!
備份User.js
重新建一個User.js
代碼:
user_pref("capability.policy.policynames", "allowclipboard");
user_pref("capability.policy.allowclipboard.sites", "http://www.mozilla.org http://blog.xuite.net");
user_pref("capability.policy.allowclipboard.Clipboard.cutcopy", "allAccess");
user_pref("capability.policy.allowclipboard.Clipboard.paste", "allAccess");

OK!!那原本的User.js是做何用??searchplugins-搜尋引擎 一樣正常工作啊!?
還有在編輯框內右鍵還是不會出現[剪下 貼上]??
正常嗎!?

1 頁 (共 1 頁) 所有顯示的時間為 UTC + 8 小時
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/