139.xhtml (684B)
1 <?xml version="1.0" encoding="utf-8"?> 2 <html xmlns="http://www.w3.org/1999/xhtml"> 3 <head> 4 <title>BiDi text selection drag and drop between textareas</title> 5 <style type="text/css"> 6 textarea 7 {width:300px; 8 height:100px; 9 margin-top:20px; 10 padding:10px;} 11 </style> 12 </head> 13 <body onload="var t = document.querySelector('textarea');t.select();t.setSelectionRange(0,32)"> 14 <p>Drag selected text to the textarea. Selected text should be moved to the textarea once you drop it there. Text direction should be preserved during drag and drop.</p> 15 <p><textarea>PASS|LIAF ‮FAIL|SSAP‬ PASS|LIAF</textarea></p> 16 <p><textarea placeholder="Drop selection here"/></p> 17 </body> 18 </html>