を見て、うちだけじゃなかった!ってことで対応策を書いておく。
結論はIEで使用するjavascriptの選択ミス。
IEでの選択解除はここを参考に
http://d.hatena.ne.jp/elm200/20080306/1204791926
IE9とかの判別方法はここを参考にしました。
http://dara-j.asablo.jp/blog/2010/11/25/5534921
IE7,8,9 とChrome、Opera、Firefox(バージョン不明)で動作確認してるけど、IEとそれ以外のブラウザで少し挙動違うのなー。
Index: context_menu.js
===================================================================
--- context_menu.js (リビジョン 7216)
+++ context_menu.js (作業コピー)
@@ -192,10 +192,12 @@
},
clearDocumentSelection: function() {
- if (document.selection) {
- document.selection.clear(); // IE
- } else {
+ if ((window.ActiveXObject == undefined && window.document.all == undefined) || window.msPerformance != undefined) { //IE9とIE以外
window.getSelection().removeAllRanges();
+ } else {
+ var selection = document.selection.createRange();
+ selection.setEndPoint("EndToStart", selection);
+ selection.select();
}
}
}
スポンサーサイト