From: tnantoka Date: Sat, 16 Jan 2010 17:19:35 +0000 (+0900) Subject: opera対応(document.selectionに&& !window.operaを追加) X-Git-Url: http://git.osdn.net/view?p=ligheditor%2Ftagget.git;a=commitdiff_plain;h=709aa3971bbf6093cdc13c3dad870b7c3d533f7e opera対応(document.selectionに&& !window.operaを追加) --- diff --git a/jquery.tagget.js b/jquery.tagget.js index dc6c390..39a2b3e 100644 --- a/jquery.tagget.js +++ b/jquery.tagget.js @@ -752,7 +752,7 @@ var start, end; // IE - if (document.selection) { + if (document.selection && !window.opera) { // t.focus(); // focusなしでもいける @@ -805,7 +805,7 @@ var x, y; - if (document.selection) { + if (document.selection && !window.opera) { var range = document.selection.createRange(); x = range.offsetLeft + @@ -855,7 +855,7 @@ t.focus(); // for IE - if (document.selection) { + if (document.selection && !window.opera) { // 選択範囲を取得 var range = document.selection.createRange(); @@ -912,7 +912,7 @@ t.focus(); // IE - if (document.selection) { + if (document.selection && !window.opera) { var range = document.selection.createRange(); range.text = func(range.text);