Wed, 31 Dec 2014 07:16:47 +0100
Revert simplistic fix pending revisit of Mozilla integration attempt.
michael@0 | 1 | <!DOCTYPE html> |
michael@0 | 2 | <html> |
michael@0 | 3 | <body onload="setup()"> |
michael@0 | 4 | <textarea id="ta" dir="rtl"> |
michael@0 | 5 | |
michael@0 | 6 | אaב |
michael@0 | 7 | |
michael@0 | 8 | </textarea> |
michael@0 | 9 | <textarea id="tb"> |
michael@0 | 10 | |
michael@0 | 11 | abc |
michael@0 | 12 | |
michael@0 | 13 | </textarea> |
michael@0 | 14 | |
michael@0 | 15 | <div id="coords1"></div> |
michael@0 | 16 | <div id="coords2"></div> |
michael@0 | 17 | |
michael@0 | 18 | <script> |
michael@0 | 19 | function setup() { |
michael@0 | 20 | document.getElementById("ta").selectionStart = 3; |
michael@0 | 21 | document.getElementById("ta").selectionEnd = 3; |
michael@0 | 22 | document.getElementById("coords1").innerHTML = document.getElementById("ta").selectionStart; |
michael@0 | 23 | document.getElementById("tb").selectionStart = 3; |
michael@0 | 24 | document.getElementById("tb").selectionEnd = 3; |
michael@0 | 25 | document.getElementById("coords2").innerHTML = document.getElementById("tb").selectionStart; |
michael@0 | 26 | } |
michael@0 | 27 | </script> |
michael@0 | 28 | </body> |
michael@0 | 29 | </html> |